From 693fdda187b7ab77f796eb8e02ad75d893df052d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B1=9F=E8=BE=B0?= Date: Mon, 24 Feb 2025 11:02:51 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BB=A3=E7=A0=81=E9=A3=8E=E6=A0=BC?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 +- .prettierrc.js | 2 +- commitlint.config.js | 8 ++-- eslint.config.js | 5 +-- postcss.config.js | 8 ++-- src/components/GlobalSetting/index.vue | 4 +- src/components/LogoBar/index.vue | 4 +- src/components/TabBar/index.vue | 7 +++- src/mock/list.ts | 6 ++- src/mock/user.ts | 6 ++- src/router/guard/permission.ts | 3 +- src/utils/request.ts | 3 +- src/utils/route-listener.ts | 5 ++- .../workplace/components/data-panel.vue | 8 +++- .../workplace/components/popular-content.vue | 12 +++++- src/views/form/step/components/base-info.vue | 5 ++- .../form/step/components/channel-info.vue | 11 ++++- .../card/components/quality-inspection.vue | 12 +++++- .../list/card/components/rules-preset.vue | 5 ++- .../list/card/components/the-service.vue | 5 ++- src/views/list/search-table/index.vue | 18 ++++++-- src/views/login/components/login-form.vue | 8 +++- src/views/user/info/components/my-project.vue | 5 ++- .../user/setting/components/certification.vue | 6 ++- .../components/enterprise-certification.vue | 6 ++- stylelint.config.js | 41 +++++++++---------- vite.config.ts | 4 +- 27 files changed, 142 insertions(+), 67 deletions(-) diff --git a/.env.production b/.env.production index e9a6503..4820052 100644 --- a/.env.production +++ b/.env.production @@ -3,7 +3,7 @@ # ************************* # 线上环境打包路径 -VITE_BASE = ./ +VITE_BASE = / # 网络请求基础路径 VITE_API_BASE_URL = "" diff --git a/.prettierrc.js b/.prettierrc.js index eddc06e..21de801 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -5,7 +5,7 @@ export default { // 行尾需要有分号 semi: true, // 一行最多几个字符 - printWidth: 110, + printWidth: 100, // 使用单引号 singleQuote: true, // 对象的 key 是否有引号格式保持一致 diff --git a/commitlint.config.js b/commitlint.config.js index 4331887..47c5d4e 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -25,8 +25,8 @@ export default { 'enhance', 'workflow', 'types', - 'release', - ], - ], - }, + 'release' + ] + ] + } }; diff --git a/eslint.config.js b/eslint.config.js index 17eaf4f..126c253 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -86,10 +86,7 @@ export default defineFlatConfig([ { disallowTypeAnnotations: false, fixStyle: 'inline-type-imports' } ], // 建议优先使用字面量枚举成员 - '@typescript-eslint/prefer-literal-enum-member': [ - 'error', - { allowBitwiseExpressions: true } - ], + '@typescript-eslint/prefer-literal-enum-member': ['error', { allowBitwiseExpressions: true }], '@typescript-eslint/no-unused-vars': [ 'error', { diff --git a/postcss.config.js b/postcss.config.js index fdc1740..8c589bb 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,5 +1,5 @@ export default { - plugins: { - autoprefixer: {}, - }, -}; \ No newline at end of file + plugins: { + autoprefixer: {} + } +}; diff --git a/src/components/GlobalSetting/index.vue b/src/components/GlobalSetting/index.vue index b01b77a..3cbdcaf 100644 --- a/src/components/GlobalSetting/index.vue +++ b/src/components/GlobalSetting/index.vue @@ -9,8 +9,8 @@ - 配置之后仅是临时生效,要想真正作用于项目,点击下方的 "复制配置" 按钮,将配置替换到 settings.json - 中即可。 + 配置之后仅是临时生效,要想真正作用于项目,点击下方的 "复制配置" 按钮,将配置替换到 + settings.json 中即可。 diff --git a/src/components/LogoBar/index.vue b/src/components/LogoBar/index.vue index 7c48abe..e308804 100644 --- a/src/components/LogoBar/index.vue +++ b/src/components/LogoBar/index.vue @@ -2,7 +2,9 @@