Browse Source

feat: 修改

linwenxin 1 year ago
parent
commit
f4e8012420
1 changed files with 5 additions and 7 deletions
  1. 5 7
      src/common/utils/navPag.js

+ 5 - 7
src/common/utils/navPag.js

@@ -232,13 +232,11 @@ export const crossPage = (function() {
     if (res.miniprogram) {
       (function tiemID() {
         Object.keys(funs).map(name => {
-          if (funs[name]) {
-            var data = uni.getStorageSync(name);
-            if (data) {
-              Object.keys(funs[name]).map(key => {
-                funs[name][key](data)
-              })
-            }
+          var data = uni.getStorageSync(name);
+          if (data) {
+            Object.keys(funs[name]).map(key => {
+              funs[name][key](data)
+            })
           }
         })
         setTimeout(tiemID, 200)