Commit 3fa72a1f authored by Damon's avatar Damon

feat: 登录过期判断

parent 61dad72b
......@@ -55,7 +55,13 @@ const install = (Vue, vm) => {
vm.$u.toast(data.msg);
return false;
}
} else {
} else if (res.statusCode === 401) {
// 登录过期
vm.$u.toast(data.msg)
setTimeout(() => {
vm.$u.route('/pages/login/index')
}, 1500);
}else {
// HTTP状态非200
vm.$u.toast(data.msg || '服务器错误');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment