diff --git a/.eslintrc.js b/.eslintrc.js index 954da34..c12b895 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -39,7 +39,7 @@ module.exports = defineConfig({ '@typescript-eslint/no-non-null-assertion': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-unused-vars': [ - 'error', + 'off', { argsIgnorePattern: '^_', varsIgnorePattern: '^_', diff --git a/src/views/kc/ktgl/components/KcKetangbiaoForm.vue b/src/views/kc/ktgl/components/KcKetangbiaoForm.vue index 6be6894..c3fbf41 100644 --- a/src/views/kc/ktgl/components/KcKetangbiaoForm.vue +++ b/src/views/kc/ktgl/components/KcKetangbiaoForm.vue @@ -114,8 +114,8 @@ kkzc: '', }); const { createMessage } = useMessage(); - const labelCol = ref({ xs: { span: 24 }, sm: { span: 5 } }); - const wrapperCol = ref({ xs: { span: 24 }, sm: { span: 16 } }); + const labelCol = ref({ xs: { span: 24 }, sm: { span: 24 } }); + const wrapperCol = ref({ xs: { span: 24 }, sm: { span: 24 } }); const confirmLoading = ref(false); //表单验证 const validatorRules = { diff --git a/tsconfig.json b/tsconfig.json index 1fd7e3e..9455537 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,8 +13,8 @@ "sourceMap": true, "esModuleInterop": true, "resolveJsonModule": true, - "noUnusedLocals": true, - "noUnusedParameters": true, + "noUnusedLocals": false,// 检查只声明、未使用的局部变量(只提示不报错) + "noUnusedParameters": false,// 检查未使用的函数参数(只提示不报错) "experimentalDecorators": true, "lib": ["dom", "esnext"], "types": ["vite/client", "jest"], @@ -24,7 +24,7 @@ "paths": { "/@/*": ["src/*"], "/#/*": ["types/*"] - } + }, }, "include": [ "tests/**/*.ts",