From 543d39dc0a89524bf2d967e44b61994bb51fef8c Mon Sep 17 00:00:00 2001 From: unknown <1162963624@qq.com> Date: Mon, 30 Nov 2020 14:34:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/base.ts b/src/api/base.ts index 0558c98..857e8bd 100644 --- a/src/api/base.ts +++ b/src/api/base.ts @@ -1,7 +1,7 @@ import axios from '../config/axiosConfig' import { AxiosRequestConfig, CustomSuccessData } from 'axios'; -import { getValue } from '@/utils/common'; +import { getValue, toindex } from '@/utils/common'; import { message } from 'ant-design-vue'; import router from '@/router'; import { MessageType } from 'ant-design-vue/types/message'; @@ -57,7 +57,7 @@ axios.interceptors.response.use((response)=>{ if(response.data.code == 1001){ store.commit("login", false) - router.push("/") + toindex(); } return response; },(error)=>{ -- 2.39.5