Browse Source

请求数据失败问题

msx 1 year ago
parent
commit
926409381f
2 changed files with 2 additions and 5 deletions
  1. 2 1
      common/service/service.js
  2. 0 4
      pages.json

+ 2 - 1
common/service/service.js

@@ -9,7 +9,8 @@ let apiUrl = configService.apiUrl;
 const getTokenStorage = () => {
 	let token = ''
 	try{
-		token = uni.getStorageSync('token')
+		token = uni.getStorageSync(ACCESS_TOKEN)
+		debugger
 	}catch(e){
 		//TODO handle the exception
 		console.log("getTokenStorage",token)

+ 0 - 4
pages.json

@@ -158,10 +158,6 @@
       "style": {}
     },
     {
-      "path": "pages/test1/test1",
-      "style": {}
-    },
-    {
       "path": "pages/history/history",
       "style": {}
     },