|
@@ -49,7 +49,8 @@ service.interceptors.response.use(
|
|
|
(res) => {
|
|
(res) => {
|
|
|
// token 自动续期
|
|
// token 自动续期
|
|
|
|
|
|
|
|
- console.log(res, '*******************');
|
|
|
|
|
|
|
+ window.businessStatus = res;
|
|
|
|
|
+
|
|
|
// && res.config?.showErrorToast !== false
|
|
// && res.config?.showErrorToast !== false
|
|
|
if (Number(res.data.code) == -1) {
|
|
if (Number(res.data.code) == -1) {
|
|
|
Message.error({
|
|
Message.error({
|
|
@@ -75,6 +76,7 @@ service.interceptors.response.use(
|
|
|
},
|
|
},
|
|
|
(error) => {
|
|
(error) => {
|
|
|
console.log(error, 'error');
|
|
console.log(error, 'error');
|
|
|
|
|
+ window.businessStatus = error;
|
|
|
// 登录过期处理
|
|
// 登录过期处理
|
|
|
if (error?.response?.status === 401) {
|
|
if (error?.response?.status === 401) {
|
|
|
const currentPath = router.currentRoute.path;
|
|
const currentPath = router.currentRoute.path;
|