From 5bee1a03032ea0407767ced1dd90048c5211e1c9 Mon Sep 17 00:00:00 2001 From: kailong321200875 <321200875@qq.com> Date: Sat, 18 Nov 2023 10:57:10 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 28 ++++++++++++++-------------- src/config/axios/config.ts | 4 ++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 9cd5f34..7359aed 100644 --- a/package.json +++ b/package.json @@ -51,37 +51,37 @@ "qs": "^6.11.2", "url": "^0.11.3", "vue": "3.3.8", - "vue-i18n": "9.6.5", + "vue-i18n": "9.7.0", "vue-json-pretty": "^2.2.4", "vue-router": "^4.2.5", "vue-types": "^5.1.1" }, "devDependencies": { - "@commitlint/cli": "^18.4.1", - "@commitlint/config-conventional": "^18.4.0", - "@iconify/json": "^2.2.142", + "@commitlint/cli": "^18.4.2", + "@commitlint/config-conventional": "^18.4.2", + "@iconify/json": "^2.2.143", "@intlify/unplugin-vue-i18n": "^1.5.0", "@purge-icons/generated": "^0.9.0", "@types/fs-extra": "^11.0.4", "@types/inquirer": "^9.0.7", "@types/lodash-es": "^4.17.11", - "@types/node": "^20.9.0", + "@types/node": "^20.9.1", "@types/nprogress": "^0.2.3", "@types/qrcode": "^1.5.5", "@types/qs": "^6.9.10", "@types/sortablejs": "^1.15.5", "@typescript-eslint/eslint-plugin": "^6.11.0", "@typescript-eslint/parser": "^6.11.0", - "@unocss/transformer-variant-group": "^0.57.4", - "@vitejs/plugin-legacy": "^4.1.1", - "@vitejs/plugin-vue": "^4.4.1", - "@vitejs/plugin-vue-jsx": "^3.0.2", + "@unocss/transformer-variant-group": "^0.57.5", + "@vitejs/plugin-legacy": "^5.0.0", + "@vitejs/plugin-vue": "^4.5.0", + "@vitejs/plugin-vue-jsx": "^3.1.0", "autoprefixer": "^10.4.16", "chalk": "^5.3.0", "consola": "^3.2.3", - "eslint": "^8.53.0", + "eslint": "^8.54.0", "eslint-config-prettier": "^9.0.0", - "eslint-define-config": "^1.24.1", + "eslint-define-config": "^2.0.0", "eslint-plugin-prettier": "^5.0.1", "eslint-plugin-vue": "^9.18.1", "esno": "^4.0.0", @@ -104,9 +104,9 @@ "stylelint-order": "^6.0.3", "terser": "^5.24.0", "typescript": "5.2.2", - "unocss": "^0.57.4", - "vite": "4.5.0", - "vite-plugin-ejs": "^1.6.4", + "unocss": "^0.57.5", + "vite": "5.0.0", + "vite-plugin-ejs": "^1.7.0", "vite-plugin-eslint": "^1.8.1", "vite-plugin-mock": "2.9.6", "vite-plugin-progress": "^0.0.7", diff --git a/src/config/axios/config.ts b/src/config/axios/config.ts index 2a5946f..6b035b1 100644 --- a/src/config/axios/config.ts +++ b/src/config/axios/config.ts @@ -1,4 +1,3 @@ -import router from '@/router' import { AxiosConfig, AxiosResponse, @@ -7,6 +6,7 @@ import { } from './types' import { ElMessage } from 'element-plus' import qs from 'qs' + import { useStorage } from '@/hooks/web/useStorage' const { clear } = useStorage() @@ -74,7 +74,7 @@ const defaultResponseInterceptors = (response: AxiosResponse) => { if (response?.data?.code === 401) { // token过期 clear() - router.push('/login') + window.location.reload() } } }