kailong321200875 преди 1 година
родител
ревизия
5bee1a0303
променени са 2 файла, в които са добавени 16 реда и са изтрити 16 реда
  1. 14 14
      package.json
  2. 2 2
      src/config/axios/config.ts

+ 14 - 14
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",

+ 2 - 2
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<any>) => {
     if (response?.data?.code === 401) {
       // token过期
       clear()
-      router.push('/login')
+      window.location.reload()
     }
   }
 }