root 2 years ago
parent
commit
6b21120859
1 changed files with 6 additions and 2 deletions
  1. 6 2
      js/Desktop/DeskTop.js

+ 6 - 2
js/Desktop/DeskTop.js

@@ -3003,11 +3003,15 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "AI助手",
                 "AI助手",
                 $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
                 $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
                 "id": "AIChat",
                 "id": "AIChat",
-                "style": { "width": "460px", "height": "550px", "bottom": "570px", "right": "480px", "overflow": 'hidden' },
+                "style": { "width": "460px", "height": "550px", "bottom": "20px", "right": "20px", "overflow": 'hidden' },
                 "onresize": function () { }
                 "onresize": function () { }
             }, {
             }, {
                 closecallback: function () { $("#aichat").remove(); },
                 closecallback: function () { $("#aichat").remove(); },
-                narrowcallback: function () { if (!$("#aichat")[0]) { $$("#aichat", { "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv.form); } }) } },
+                narrowcallback: function () {
+                    if (!$("#aichat")[0]) {
+                        $$("#aichat", { "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv.form); } }, $("#U_MD_D")[0])
+                    }
+                },
             }, { "style": { "height": "36px" } }).form; //创建窗体
             }, { "style": { "height": "36px" } }).form; //创建窗体
             _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI助手", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
             _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI助手", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }