From 3ed947c8da907e8f0fd987808b93f15f5355c365 Mon Sep 17 00:00:00 2001 From: Hooray <304327508@qq.com> Date: Sat, 21 Sep 2024 13:26:00 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20tsconfig=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + package.json | 6 ++-- src/components/RegisterForm/index.vue | 2 +- src/components/SystemInfo/index.vue | 8 +++++ src/router/guards.ts | 4 +-- src/store/modules/tabbar.ts | 4 +-- tsconfig.app.json | 49 +++++++++++++++++++++++++++ tsconfig.json | 49 ++------------------------- tsconfig.node.json | 14 ++++++-- vite.config.ts | 12 +++---- vite/plugins.ts | 5 +-- 11 files changed, 89 insertions(+), 65 deletions(-) create mode 100755 tsconfig.app.json mode change 100755 => 100644 tsconfig.json diff --git a/.gitignore b/.gitignore index 1692b26f..2393345f 100755 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,6 @@ node_modules dist* dist-ssr *.local +*.tsbuildinfo .eslintcache .stylelintcache diff --git a/package.json b/package.json index 4845d943..bdbf4073 100755 --- a/package.json +++ b/package.json @@ -6,15 +6,15 @@ }, "scripts": { "dev": "vite", - "build": "vue-tsc && vite build", - "build:test": "vue-tsc && vite build --mode test", + "build": "vue-tsc -b && vite build", + "build:test": "vue-tsc -b && vite build --mode test", "serve": "http-server ./dist -o", "serve:test": "http-server ./dist-test -o", "svgo": "svgo -f src/assets/icons", "new": "plop", "generate:icons": "esno ./scripts/generate.icons.ts", "lint": "npm-run-all -s lint:tsc lint:eslint lint:stylelint", - "lint:tsc": "vue-tsc", + "lint:tsc": "vue-tsc -b", "lint:eslint": "eslint . --cache --fix", "lint:stylelint": "stylelint \"src/**/*.{css,scss,vue}\" --cache --fix", "postinstall": "simple-git-hooks", diff --git a/src/components/RegisterForm/index.vue b/src/components/RegisterForm/index.vue index f969dbc1..84579f12 100644 --- a/src/components/RegisterForm/index.vue +++ b/src/components/RegisterForm/index.vue @@ -38,7 +38,7 @@ const rules = ref({ checkPassword: [ { required: true, trigger: 'blur', message: '请再次输入密码' }, { - validator: (rule, value, callback) => { + validator: (_rule, value, callback) => { if (value !== form.value.password) { callback(new Error('两次输入的密码不一致')) } diff --git a/src/components/SystemInfo/index.vue b/src/components/SystemInfo/index.vue index c3d01cec..a28afbce 100755 --- a/src/components/SystemInfo/index.vue +++ b/src/components/SystemInfo/index.vue @@ -14,6 +14,14 @@ onMounted(() => {