From a7e1bf63d1d2a4c5bfc16d15d3f94463d4befe09 Mon Sep 17 00:00:00 2001 From: zyh Date: Thu, 28 Nov 2024 15:40:38 +0800 Subject: fix: 删除无用代码 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/index.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/utils/index.js b/src/utils/index.js index af584f7..e9fef6c 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -2,7 +2,6 @@ import router from '@/router/index'; import { useSystemStore } from '@/store/index'; import { cloneDeep, get } from 'lodash'; import { useI18n } from 'vue-i18n'; -import axiosInstance from '@/axios/index.js'; import { administrator } from '@/utils/constants'; export * from './unit'; @@ -20,8 +19,6 @@ export const isDev = () => { // 退出登录清除数据 export const logoutClear = () => { localStorage.removeItem('asg-userInfo'); - const systemStore = useSystemStore(); - systemStore.menus = []; router.push({ name: 'login' }); }; -- cgit v1.2.3