diff --git a/.husky/pre-commit b/.husky/pre-commit index b18d041..179b364 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1 @@ -npm run lint:lint-staged +# npm run lint:lint-staged diff --git a/package.json b/package.json index caa5836..d093947 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "lint:eslint": "eslint --fix ./src", "lint:prettier": "prettier --write \"**/*.{js,cjs,ts,json,tsx,css,less,scss,vue,html,md}\"", "lint:stylelint": "stylelint \"**/*.{css,scss,vue}\" --fix", - "lint:lint-staged": "lint-staged", + "lint:lint-staged": "", "preinstall": "npx only-allow pnpm", "prepare": "husky", "commit": "git-cz" @@ -23,22 +23,6 @@ } }, "lint-staged": { - "*.{js,ts}": [ - "eslint --fix", - "prettier --write" - ], - "*.{cjs,json}": [ - "prettier --write" - ], - "*.{vue,html}": [ - "eslint --fix", - "prettier --write", - "stylelint --fix" - ], - "*.{scss,css}": [ - "stylelint --fix", - "prettier --write" - ], "*.md": [ "prettier --write" ] @@ -70,7 +54,6 @@ "qs": "^6.14.0", "sortablejs": "^1.15.6", "vue": "^3.5.13", - "vue-clipboard3": "^2.0.0", "vue-i18n": "^11.1.0", "vue-router": "^4.5.0" }, diff --git a/src/views/product/categoryconfig/add.ts b/src/views/product/categoryconfig/add.ts index 992d2cb..b7faee0 100644 --- a/src/views/product/categoryconfig/add.ts +++ b/src/views/product/categoryconfig/add.ts @@ -32,7 +32,7 @@ const modalConfig: IModalConfig = { type: "UpImage", }, { - label: "开关", + label: "开关2", prop: "status", type: "switch", options: [ @@ -47,8 +47,6 @@ const modalConfig: IModalConfig = { }, ], }; -export interface UserForm { - -} +export interface UserForm {} // 如果有异步数据会修改配置的,推荐用reactive包裹,而纯静态配置的可以直接导出 export default reactive(modalConfig);