From 631691a4ca47df3be65af0c87f63c84f7be53466 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Sat, 17 Jul 2021 15:50:09 +0800
Subject: [PATCH] 测试代码,依赖出问题
---
src/router/axios.js | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/router/axios.js b/src/router/axios.js
index 7b0a00d..9d05a2f 100644
--- a/src/router/axios.js
+++ b/src/router/axios.js
@@ -8,11 +8,11 @@
import axios from 'axios';
import store from '@/store/';
import router from '@/router/router';
-import {serialize} from '@/util/util';
-import {getToken} from '@/util/auth';
-import {Message} from 'element-ui';
+import { serialize } from '@/util/util';
+import { getToken } from '@/util/auth';
+import { Message } from 'element-ui';
import website from '@/config/website';
-import {Base64} from 'js-base64';
+import { Base64 } from 'js-base64';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
@@ -62,7 +62,7 @@
//如果在白名单里则自行catch逻辑处理
if (statusWhiteList.includes(status)) return Promise.reject(res);
//如果是401则跳转到登录页面
- if (status === 401) store.dispatch('FedLogOut').then(() => router.push({path: '/login'}));
+ if (status === 401) store.dispatch('FedLogOut').then(() => router.push({ path: '/login' }));
// 如果请求为非200否者默认统一处理
if (status !== 200) {
Message({
--
Gitblit v1.9.3