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 = '';