lsc 8 ay önce
ebeveyn
işleme
610b686bda
1 değiştirilmiş dosya ile 18 ekleme ve 0 silme
  1. 18 0
      js/Desktop/Onload.js

+ 18 - 0
js/Desktop/Onload.js

@@ -475,6 +475,12 @@ U.MD.D.getuser = function () {
                                     console.log(shareCourseId);
                                     U.MD.D.I.openInApplication("studyDetail", shareCourseId, 5, 1)
                                 }
+                                if(res.value[0][0].type === 1 && window.location.hash.indexOf('project') != -1){
+                                    U.MD.D.I.openInApplication("project")
+                                }
+                                if(res.value[0][0].type === 1 && window.location.hash.indexOf('study') != -1){
+                                    U.MD.D.I.openInApplication("study")
+                                }
                                 U.MD.O.P.connect(); //登录成功后连接socket服务同步协同编辑
                             }, [], { "type": "GET", "withCredentials": true });
                         }
@@ -679,6 +685,12 @@ U.MD.D.getuser = function () {
                                         console.log(shareCourseId);
                                         U.MD.D.I.openInApplication("studyDetail", shareCourseId, 5, 1)
                                     }
+                                    if(res.value[0][0].type === 1 && window.location.hash.indexOf('project') != -1){
+                                        U.MD.D.I.openInApplication("project")
+                                    }
+                                    if(res.value[0][0].type === 1 && window.location.hash.indexOf('study') != -1){
+                                        U.MD.D.I.openInApplication("study")
+                                    }
                                     U.MD.O.P.connect(); //登录成功后连接socket服务同步协同编辑
                                 }, [], { "type": "GET", "withCredentials": true });
                             }
@@ -932,6 +944,12 @@ U.MD.D.getuser2 = function (userid, cid) {
         }else{
             U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
         }
+        if(res.value[0][0].type === 1 && window.location.hash.indexOf('project') != -1){
+            U.MD.D.I.openInApplication("project")
+        }
+        if(res.value[0][0].type === 1 && window.location.hash.indexOf('study') != -1){
+            U.MD.D.I.openInApplication("study")
+        }
         U.MD.O.P.connect(); //登录成功后连接socket服务同步协同编辑
         U.MD.D.I.openInApplication("studyDetail", cid, 2, 2)
     }, [], { "type": "GET", "withCredentials": true });