From 689669a9e307b26ef132ade7f2f2ae4598103104 Mon Sep 17 00:00:00 2001 From: zqx Date: Wed, 4 Sep 2024 19:30:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AD=97=E5=85=B8=E9=94=AE?= =?UTF-8?q?=E5=80=BC=E4=B8=BAbool=E7=B1=BB=E5=9E=8B=E5=92=8C=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=E7=B1=BB=E5=9E=8B=E6=97=B6=EF=BC=8C=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E5=88=97=E8=A1=A8=E9=80=BB=E8=BE=91Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 8 +- .vscode/settings.json | 15 +- package.json | 2 +- pnpm-lock.yaml | 2 +- prettier.config.js | 22 --- src/App.vue | 2 +- src/api/infra/apiErrorLog/index.ts | 2 + src/api/recruit/applicant/index.ts | 31 ---- src/utils/dict.ts | 6 +- src/utils/http/axios/Axios.ts | 9 +- src/views/base/login/LoginForm.vue | 149 ++++++++++-------- .../recruit/applicant/ApplicantModal.vue | 58 ------- src/views/recruit/applicant/index.vue | 91 ----------- 13 files changed, 102 insertions(+), 295 deletions(-) delete mode 100644 prettier.config.js delete mode 100644 src/api/recruit/applicant/index.ts delete mode 100644 src/views/recruit/applicant/ApplicantModal.vue delete mode 100644 src/views/recruit/applicant/index.vue diff --git a/.env b/.env index 33168c88b..5b92fba34 100644 --- a/.env +++ b/.env @@ -2,19 +2,19 @@ VITE_PORT = 80 # 网站标题 -VITE_GLOB_APP_TITLE = 招聘管理系统 +VITE_GLOB_APP_TITLE = 芋道管理系统 # 简称,用于配置文件名字 不要出现空格、数字开头等特殊字符 VITE_GLOB_APP_SHORT_NAME = Yudao_Admin # 租户开关 -VITE_GLOB_APP_TENANT_ENABLE = false +VITE_GLOB_APP_TENANT_ENABLE = true # 验证码的开关 -VITE_GLOB_APP_CAPTCHA_ENABLE = false +VITE_GLOB_APP_CAPTCHA_ENABLE = true # 文档地址的开关 -VITE_APP_DOCALERT_ENABLE=false +VITE_APP_DOCALERT_ENABLE=true # 百度统计 VITE_APP_BAIDU_CODE = eb21166668bf766b9d059a6fd1c10777 diff --git a/.vscode/settings.json b/.vscode/settings.json index 136152d08..e773ddf7e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -61,8 +61,8 @@ "@/": "${workspaceRoot}/src" }, "eslint.experimental.useFlatConfig": true, - "prettier.enable": true, - "editor.formatOnSave": true, + "prettier.enable": false, + "editor.formatOnSave": false, "editor.codeActionsOnSave": { "source.fixAll": "explicit", "source.organizeImports": "never" @@ -94,7 +94,7 @@ "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[typescript]": { - "editor.defaultFormatter": "vscode.typescript-language-features" + "editor.defaultFormatter": "rvest.vs-code-prettier-eslint" }, "[typescriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" @@ -116,11 +116,10 @@ }, "[vue]": { "editor.codeActionsOnSave": { - "source.fixAll.eslint": "explicit", - "source.organizeImports": "never", - "source.fixAll.stylelint": "explicit" - }, - "editor.defaultFormatter": "Vue.volar" + "source.fixAll.eslint": true, + "source.organizeImports": false, + "source.fixAll.stylelint": true + } }, "i18n-ally.localesPaths": ["src/locales/lang"], "i18n-ally.keystyle": "nested", diff --git a/package.json b/package.json index 99ede5079..d0859d949 100644 --- a/package.json +++ b/package.json @@ -114,7 +114,7 @@ "postcss": "^8.4.31", "postcss-html": "^1.5.0", "postcss-less": "^6.0.0", - "prettier": "^3.3.3", + "prettier": "^3.1.0", "rimraf": "^5.0.5", "rollup": "^4.4.0", "rollup-plugin-visualizer": "^5.9.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8b08f8318..0732a7e14 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -212,7 +212,7 @@ devDependencies: specifier: ^6.0.0 version: 6.0.0(postcss@8.4.44) prettier: - specifier: ^3.3.3 + specifier: ^3.1.0 version: 3.3.3 rimraf: specifier: ^5.0.5 diff --git a/prettier.config.js b/prettier.config.js deleted file mode 100644 index b014bbf1b..000000000 --- a/prettier.config.js +++ /dev/null @@ -1,22 +0,0 @@ -module.exports = { - printWidth: 100, // 每行代码长度(默认80) - tabWidth: 2, // 每个tab相当于多少个空格(默认2)ab进行缩进(默认false) - useTabs: false, // 是否使用tab - semi: false, // 声明结尾使用分号(默认true) - vueIndentScriptAndStyle: false, - singleQuote: true, // 使用单引号(默认false) - quoteProps: 'as-needed', - bracketSpacing: true, // 对象字面量的大括号间使用空格(默认true) - trailingComma: 'none', // 多行使用拖尾逗号(默认none) - jsxSingleQuote: false, - // 箭头函数参数括号 默认avoid 可选 avoid| always - // avoid 能省略括号的时候就省略 例如x => x - // always 总是有括号 - arrowParens: 'always', - insertPragma: false, - requirePragma: false, - proseWrap: 'never', - htmlWhitespaceSensitivity: 'strict', - endOfLine: 'auto', - rangeStart: 0 -} diff --git a/src/App.vue b/src/App.vue index 04e5189fe..9bc36ca7e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -17,7 +17,7 @@ const { themeConfig } = storeToRefs(appStore) const componentSize = computed(() => appStore.getComponentSize) // Listening to page changes and dynamically changing site titles -useTitle(); +useTitle()