From 965d464f1f3b78c0e655147513d23bf543e3e6c8 Mon Sep 17 00:00:00 2001 From: Coffee-crocodile <1147347984@qq.com> Date: Wed, 15 Mar 2023 13:30:48 +0800 Subject: [PATCH] =?UTF-8?q?build(package):=20=E5=8D=87=E7=BA=A7=E9=83=A8?= =?UTF-8?q?=E5=88=86=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/extensions.json | 23 ++++++++++++++++++++++- .vscode/settings.json | 4 +--- build/plugins/index.ts | 3 ++- package.json | 38 +++++++++++++++++++------------------- src/service/http/utils.ts | 2 +- src/views/login/index.vue | 8 ++++---- 6 files changed, 49 insertions(+), 29 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index a7cea0b..48b969f 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,3 +1,24 @@ { - "recommendations": ["Vue.volar"] + "recommendations": [ + "formulahendry.auto-close-tag", + "formulahendry.auto-rename-tag", + "mikestead.dotenv", + "usernamehw.errorlens", + "dbaeumer.vscode-eslint", + "mhutchie.git-graph", + "donjayamanne.githistory", + "redjue.git-commit-plugin", + "lokalise.i18n-ally", + "antfu.iconify", + "kisstkondoros.vscode-gutter-preview", + "wix.vscode-import-cost", + "mariusalchimavicius.json-to-ts", + "christian-kohler.path-intellisense", + "proeagle.px2xx", + "meganrogge.template-string-converter", + "antfu.unocss", + "pflannery.vscode-versionlens", + "vue.volar", + "kamikillerto.vscode-colorize" + ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 06e2085..d992d4b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,10 +8,8 @@ "eslint.format.enable": true, // 校验那些文件 "eslint.validate": ["typescript", "javascript", "vue", "html"], - // 终端显示 - "eslint.alwaysShowStatus": true, // 加载配置文件 "eslint.options": { "configFile": ".eslintrc.js" }, // 保存自动格式化 - "editor.formatOnSave": true + "editor.formatOnSave": false, } diff --git a/build/plugins/index.ts b/build/plugins/index.ts index 200540c..70964ee 100644 --- a/build/plugins/index.ts +++ b/build/plugins/index.ts @@ -1,3 +1,4 @@ +import type { PluginOption } from 'vite'; import vue from './vue'; import compress from './compress'; import html from './html'; @@ -19,7 +20,7 @@ export function setVitePlugins(env: ImportMetaEnv) { } // 是否依赖分析 if (env.VITE_VISUALIZER === 'Y') { - plugins.push(visualizer); + plugins.push(visualizer as PluginOption); } return plugins; } diff --git a/package.json b/package.json index 638298f..d2ebb63 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "private": true, "version": "0.0.1", "description": "", - "author": "iam see (https://github.com/iam-see/)", + "author": "iam-see (https://github.com/iam-see/)", "license": "MIT", "homepage": "https://github.com/iam-see/Ench-admin", "keywords": [ @@ -31,17 +31,17 @@ "./src/**/*.{vue,js,jsx,ts,tsx,json}": "eslint --fix" }, "dependencies": { - "@vueuse/core": "^9.10.0", + "@vueuse/core": "^9.13.0", "@wangeditor/editor": "^5.1.23", "@wangeditor/editor-for-vue": "^5.1.12", - "axios": "^1.2.2", + "axios": "^1.3.4", "crypto-js": "^4.1.1", "echarts": "^5.4.1", - "md-editor-v3": "^2.7.2", - "pinia": "^2.0.28", + "md-editor-v3": "^2.9.3", + "pinia": "^2.0.33", "pinia-plugin-persist": "^1.0.0", - "qs": "^6.11.0", - "vue": "^3.2.45", + "qs": "^6.11.1", + "vue": "^3.2.47", "vue-qr": "^4.0.9", "vue-router": "^4.1.6" }, @@ -52,13 +52,13 @@ "@iconify/vue": "^4.0.2", "@types/crypto-js": "^4.1.1", "@types/mockjs": "^1.0.7", - "@types/node": "^18.11.18", + "@types/node": "^18.15.3", "@types/qs": "^6.9.7", - "@typescript-eslint/eslint-plugin": "^5.48.1", - "@typescript-eslint/parser": "^5.48.1", - "@unocss/preset-attributify": "^0.48.3", - "@unocss/preset-uno": "^0.48.3", - "@unocss/vite": "^0.48.3", + "@typescript-eslint/eslint-plugin": "^5.55.0", + "@typescript-eslint/parser": "^5.55.0", + "@unocss/preset-attributify": "^0.50.4", + "@unocss/preset-uno": "^0.50.4", + "@unocss/vite": "^0.50.4", "@vitejs/plugin-vue": "^4.0.0", "@vitejs/plugin-vue-jsx": "^3.0.0", "@vue/eslint-config-typescript": "^11.0.2", @@ -67,21 +67,21 @@ "cz-customizable": "^7.0.0", "eslint": "^8.31.0", "eslint-import-resolver-alias": "^1.1.2", - "eslint-plugin-import": "^2.26.0", - "eslint-plugin-vue": "^9.8.0", + "eslint-plugin-import": "^2.27.5", + "eslint-plugin-vue": "^9.9.0", "husky": "^8.0.3", "lint-staged": "^13.1.0", "mockjs": "^1.1.0", "naive-ui": "^2.34.3", "rollup-plugin-visualizer": "^5.9.0", "typescript": "^4.9.4", - "unplugin-icons": "^0.15.1", - "unplugin-vue-components": "^0.22.12", - "vite": "^4.0.4", + "unplugin-icons": "^0.15.3", + "unplugin-vue-components": "^0.24.1", + "vite": "^4.1.4", "vite-plugin-compression": "^0.5.1", "vite-plugin-html": "^3.2.0", "vite-plugin-mock": "^2.9.6", "vite-plugin-svg-icons": "^2.0.1", - "vue-tsc": "^1.0.24" + "vue-tsc": "^1.2.0" } } diff --git a/src/service/http/utils.ts b/src/service/http/utils.ts index 37b72c6..eb966b4 100644 --- a/src/service/http/utils.ts +++ b/src/service/http/utils.ts @@ -18,7 +18,7 @@ export function showError(error: Service.RequestError) { */ export async function transformRequestData(requestData: any, contentType?: string) { // application/json类型不处理 - let data = clearInvalidParameters(requestData); + let data: any = clearInvalidParameters(requestData); // let data = requestData; // form类型转换 diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 12b802f..4dd52aa 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -1,7 +1,7 @@