lsc 2 settimane fa
parent
commit
bbe3a6acb8
1 ha cambiato i file con 19 aggiunte e 17 eliminazioni
  1. 19 17
      js/Desktop/DeskTop.js

+ 19 - 17
js/Desktop/DeskTop.js

@@ -7744,23 +7744,25 @@ U.MD.D.I.openApplicationWai = function (id, url, dom, array) {
         { userid: _userid, organizeid: _oid, type: _type, org: _org, role: _role, classid: _classId } = _userinfo; // 解构赋值获取用户信息
     const _TscreenType = 1, _screenType = 2, _SscreenType = 3; // 常量定义
     let iframeBool = true;
-    const paramsMap = {
-        userid: _userid,
-        org: _org,
-        oid: _oid,
-        type: _type,
-        role: _role,
-        classId: _classId,
-        TscreenType: _TscreenType,
-        SscreenType: _SscreenType
-    };
-
-    const canshu = array
-        .filter(param => paramsMap[param] !== undefined)
-        .map(param => `${param}=${paramsMap[param]}`);
-
-    const queryString = canshu.length ? '?' + canshu.join('&') : ''; // 生成查询字符串
-
+    let queryString = ''
+    if(array && array.length){
+        const paramsMap = {
+            userid: _userid,
+            org: _org,
+            oid: _oid,
+            type: _type,
+            role: _role,
+            classId: _classId,
+            TscreenType: _TscreenType,
+            SscreenType: _SscreenType
+        };
+
+        const canshu = array
+            .filter(param => paramsMap[param] !== undefined)
+            .map(param => `${param}=${paramsMap[param]}`);
+
+        queryString = canshu.length ? '?' + canshu.join('&') : ''; // 生成查询字符串
+    }
     if(U.UF.UI.form.allForm[id]){
         iframeBool = false
     }