diff --git a/package.json b/package.json index d9e2ab6b7a5d091dca37002570263ac7fba1193b..dc3bd55033ffada05e77abd011f95dc8b23b65e0 100644 --- a/package.json +++ b/package.json @@ -20,65 +20,65 @@ "url": "https://gitee.com/JavaLionLi/plus-ui.git" }, "dependencies": { - "@element-plus/icons-vue": "2.3.1", - "@highlightjs/vue-plugin": "2.1.0", + "@element-plus/icons-vue": "2.3.2", + "@highlightjs/vue-plugin": "2.1.2", "@vueup/vue-quill": "1.2.0", - "@vueuse/core": "13.1.0", + "@vueuse/core": "13.9.0", "animate.css": "4.1.1", "await-to-js": "3.0.0", - "axios": "1.8.4", + "axios": "1.13.1", "crypto-js": "4.2.0", "echarts": "5.6.0", - "element-plus": "2.9.8", + "element-plus": "2.11.7", "file-saver": "2.0.5", - "highlight.js": "11.9.0", + "highlight.js": "11.11.1", "image-conversion": "2.1.1", "js-cookie": "3.0.5", - "jsencrypt": "3.3.2", + "jsencrypt": "3.5.4", "nprogress": "0.2.0", - "pinia": "3.0.2", + "pinia": "3.0.3", "screenfull": "6.0.2", - "vue": "3.5.13", - "vue-cropper": "1.1.1", - "vue-i18n": "11.1.3", - "vue-json-pretty": "2.4.0", - "vue-router": "4.5.0", + "vue": "3.5.22", + "vue-cropper": "1.1.4", + "vue-i18n": "11.1.12", + "vue-json-pretty": "2.6.0", + "vue-router": "4.6.3", "vue-types": "6.0.0", - "vxe-table": "4.13.7" + "vxe-table": "4.17.7" }, "devDependencies": { - "@iconify/json": "^2.2.276", + "@iconify/json": "^2.2.403", "@types/crypto-js": "4.2.2", "@types/file-saver": "2.0.7", "@types/js-cookie": "3.0.6", - "@types/node": "^22.13.4", + "@types/node": "^22.19.0", "@types/nprogress": "0.2.3", - "@unocss/preset-attributify": "66.5.2", - "@unocss/preset-icons": "66.5.2", - "@unocss/preset-uno": "66.5.2", - "@vitejs/plugin-vue": "5.2.3", - "@vue/compiler-sfc": "3.5.13", + "@unocss/preset-attributify": "66.5.4", + "@unocss/preset-icons": "66.5.4", + "@unocss/preset-uno": "66.5.4", + "@vitejs/plugin-vue": "5.2.4", + "@vue/compiler-sfc": "3.5.22", "@vue/eslint-config-prettier": "10.2.0", - "@vue/eslint-config-typescript": "14.4.0", - "autoprefixer": "10.4.20", - "eslint": "9.21.0", - "eslint-plugin-prettier": "5.2.3", - "eslint-plugin-vue": "9.32.0", - "globals": "16.0.0", - "prettier": "3.5.2", - "sass": "1.87.0", - "typescript": "~5.8.3", - "unocss": "66.5.2", - "unplugin-auto-import": "19.1.2", - "unplugin-icons": "22.1.0", - "unplugin-vue-components": "28.5.0", + "@vue/eslint-config-typescript": "14.6.0", + "autoprefixer": "10.4.21", + "eslint": "9.39.1", + "eslint-plugin-prettier": "5.5.4", + "eslint-plugin-vue": "9.33.0", + "globals": "16.5.0", + "prettier": "3.6.2", + "sass": "1.93.3", + "typescript": "~5.9.3", + "unocss": "66.5.4", + "unplugin-auto-import": "19.3.0", + "unplugin-icons": "22.5.0", + "unplugin-vue-components": "28.8.0", "unplugin-vue-setup-extend-plus": "1.0.1", - "vite": "6.3.2", + "vite": "6.4.1", "vite-plugin-compression": "0.5.1", - "vite-plugin-svg-icons-ng": "^1.4.0", - "vite-plugin-vue-devtools": "7.7.5", - "vitest": "3.1.2", - "vue-tsc": "^2.2.8" + "vite-plugin-svg-icons-ng": "^1.5.2", + "vite-plugin-vue-devtools": "8.0.3", + "vitest": "3.2.4", + "vue-tsc": "^2.2.12" }, "overrides": { "quill": "2.0.2" diff --git a/src/utils/jsencrypt.ts b/src/utils/jsencrypt.ts index 6df068e47c9ef59b0f12bbdd2cf4b523281feed8..42de5a01c20fea222fb781cacc5d2713af28bbac 100644 --- a/src/utils/jsencrypt.ts +++ b/src/utils/jsencrypt.ts @@ -1,4 +1,4 @@ -import JSEncrypt from 'jsencrypt/bin/jsencrypt.min.js'; +import JSEncrypt from 'jsencrypt'; // 密钥对生成 http://web.chacuo.net/netrsakeypair const publicKey = import.meta.env.VITE_APP_RSA_PUBLIC_KEY; diff --git a/src/utils/request.ts b/src/utils/request.ts index f3b06ad0b568e3e0ca0b0f4d08bfef278351738c..cd16fb161eeecf6c6f2d5247ee77d5bc29bf7c9f 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -28,7 +28,11 @@ axios.defaults.headers['clientid'] = import.meta.env.VITE_APP_CLIENT_ID; // 创建 axios 实例 const service = axios.create({ baseURL: import.meta.env.VITE_APP_BASE_API, - timeout: 50000 + timeout: 50000, + transitional: { + // 超时错误更明确 + clarifyTimeoutError: true + } }); // 请求拦截器