瀏覽代碼

no message

WIN-20230912WHV\Administrator 2 年之前
父節點
當前提交
7fe3ecb352
共有 3 個文件被更改,包括 4 次插入3 次删除
  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": {
   "dependencies": {
     "uni-read-pages": "^1.0.5",
     "uni-read-pages": "^1.0.5",
     "uni-simple-router": "^2.0.7",
     "uni-simple-router": "^2.0.7",
-    "uploading-oss": "^1.0.3"
+    "uploading-oss": "^1.0.3",
+    "jweixin-module": "^1.2.0"
   },
   },
   "devDependencies": {
   "devDependencies": {
     "@types/html5plus": "^1.0.2",
     "@types/html5plus": "^1.0.2",

+ 1 - 1
service/router.js

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