From 7733ab84e1334c5408911686727a93d038dd6538 Mon Sep 17 00:00:00 2001 From: kgdxpr Date: Tue, 31 Dec 2024 16:09:49 +0800 Subject: [PATCH] 'commit' --- WebRoot/index_ai.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/WebRoot/index_ai.html b/WebRoot/index_ai.html index 359e7bb9..95d43732 100644 --- a/WebRoot/index_ai.html +++ b/WebRoot/index_ai.html @@ -30,14 +30,13 @@ dataType: "json", async: false, url: "/QingLong/maxkb/getApplication", - success: function (res) { - console.log(res); + success: function (res) { if (res.success) { var appId = res.access_token; var iframe = ''; $('body').append(iframe); } else { - var loadIndex = layer.msg('AI助手初始化中...', { + layer.msg('AI助手初始化中...', { icon: 16, shade: 0.01 }); @@ -45,9 +44,8 @@ $.ajax({ url: '/QingLong/maxkb/createApplication', type: 'post', - async: false, - success: function (res) { - console.log(res); + async: true, + success: function (res) { if (res.success) { var appId = res.access_token; var iframe = '';