提交 53dd4731 编写于 作者: H haoxr

refactor: 移除会话过期跳转登录页面的错误提示

Former-commit-id: 31176018
上级 f48271fc
import router from '@/router';
import { ElMessage } from 'element-plus';
import useStore from '@/store';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
......@@ -37,7 +36,6 @@ router.beforeEach(async (to, from, next) => {
} catch (error) {
// 移除 token 并跳转登录页
await user.resetToken();
ElMessage.error((error as any) || 'Has Error');
next(`/login?redirect=${to.path}`);
NProgress.done();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册