提交 ceb83d11 作者: 方治民

feat(util): 新增网络请求 401 时跳转到登录页的示例代码

上级 192edf94
......@@ -64,7 +64,12 @@ const transform: AxiosTransform = {
case HTTP.Status.UNAUTHORIZED:
timeoutMsg = '登录信息过期,请重新登录!'
clearAuthCache()
// TODO: 跳转到登录页
// uni.reLaunch({
// url: '/pages/login/index',
// })
break
default:
if (details) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论