lsc 2 years ago
parent
commit
524ef95254
1 changed files with 5 additions and 2 deletions
  1. 5 2
      js/Desktop/DeskTop.js

+ 5 - 2
js/Desktop/DeskTop.js

@@ -55,7 +55,7 @@ U.MD.D.I.easyDeskIcon = [
     { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
     { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
     { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
-    { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
+    // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
 ];
 
 //教师桌面图标的全局变量
@@ -556,7 +556,7 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
         _oid = US.userInfo.organizeid,
         _role = US.userInfo.role,
         _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
-        _easyDesktopIconInfo = U.MD.D.I.easyDeskIcon, //极简模式桌面图标
+        _easyDesktopIconInfo =  JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
         _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
         _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
         _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
@@ -594,6 +594,9 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
             { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
             { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
         )
+        _easyDesktopIconInfo.push(
+            { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
+        )
     }
     if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
         _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {