Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
swx_weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-11-12 00:39:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
89e263dae60d03641f3c17f37e7a247615a247e0
89e263da
1 parent
0eeb2e88
没有授权提醒反馈时间放宽
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
src/utils/request.js
src/utils/request.js
View file @
89e263d
/*
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-11-
01 13:29:19
* @LastEditTime: 2022-11-
11 16:27:35
* @FilePath: /swx/src/utils/request.js
* @Description: 简单axios封装,后续按实际处理
*/
...
...
@@ -94,9 +94,11 @@ service.interceptors.response.use(
* 未授权跳转登录页
* 授权完成后 返回当前页面
*/
Taro
.
navigateTo
({
url
:
'../../pages/auth/index?url='
+
routerStore
().
url
})
setTimeout
(()
=>
{
Taro
.
navigateTo
({
url
:
'../../pages/auth/index?url='
+
routerStore
().
url
});
},
1000
);
}
return
response
},
...
...
Please
register
or
login
to post a comment