Ver Fonte

no message

WIN-20230912WHV\Administrator há 2 anos atrás
pai
commit
7fe3ecb352
3 ficheiros alterados com 4 adições e 3 exclusões
  1. 2 1
      package.json
  2. 1 1
      service/router.js
  3. 1 1
      service/tools.js

+ 2 - 1
package.json

@@ -2,7 +2,8 @@
   "dependencies": {
     "uni-read-pages": "^1.0.5",
     "uni-simple-router": "^2.0.7",
-    "uploading-oss": "^1.0.3"
+    "uploading-oss": "^1.0.3",
+    "jweixin-module": "^1.2.0"
   },
   "devDependencies": {
     "@types/html5plus": "^1.0.2",

+ 1 - 1
service/router.js

@@ -23,7 +23,7 @@ router.beforeEach((to, from, next) => {
 
     // #ifdef H5
     if(whiteList.indexOf(to.path)<0 && !userToken){
-        tools.wxLogin()
+        // tools.wxLogin()
     }
     // #endif
     next();

+ 1 - 1
service/tools.js

@@ -1,4 +1,4 @@
-import  wxJs from 'static/js/jweixin-1.2.0'
+import wxJs from "jweixin-module"
 
 let tools = {}
 /**