Browse Source

feat: 简化代码

linwenxin 1 year ago
parent
commit
d578bfdc73
1 changed files with 1 additions and 25 deletions
  1. 1 25
      src/common/utils/navPag.js

+ 1 - 25
src/common/utils/navPag.js

@@ -171,13 +171,6 @@ export const crossPage = (function() {
           }
         })
       }
-      if (tiemIdIs[name]) {
-        clearTimeout(tiemIdIs[name])
-      }
-      uni.setStorageSync(name, data);
-      tiemIdIs[name] = setTimeout(function() {
-        uni.removeStorageSync(name)
-      }, 350)
       // #endif
     },
 
@@ -219,22 +212,5 @@ export const crossPage = (function() {
     },
     // #endif
   };
-
-  // #ifdef H5
-  (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)
-          })
-        }
-      }
-    })
-    setTimeout(tiemID, 200)
-  })()
-  // #endif
-
   return funco
-})()
+})()