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(() => {