diff --git a/.eslintrc.js b/.eslintrc.js index 6ec2926..5335bcb 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -11,17 +11,32 @@ module.exports = { }, }, }, - extends: ['plugin:vue/vue3-essential', 'airbnb-base', 'prettier'], + // 配置这些自动引入的库 避免vscode报红 + extends: [ + 'plugin:vue/vue3-essential', + 'airbnb-base', + 'prettier', + // collections + 'vue-global-api/reactivity', + 'vue-global-api/lifecycle', + 'vue-global-api/component', + // single apis + 'vue-global-api/ref', + 'vue-global-api/toRef', + ], + extends: [], parserOptions: { ecmaVersion: 'latest', sourceType: 'module', }, plugins: ['vue'], + // ESLint 是一个语法规则和代码风格的检查工具,可以用来保证写出语法正确、风格统一的代码。 rules: { 'import/no-cycle': 0, 'import/prefer-default-export': 0, 'import/order': 0, 'no-lonely-if': 0, + 'no-undef': 1, 'no-unused-expressions': 0, 'vue/multi-word-component-names': [ 'error', diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index fbcab77..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -custom: http://doc.ruoyi.vip/ruoyi-vue/other/donate.html diff --git a/.prettierrc.js b/.prettierrc.js index 2b78721..2c781b7 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,3 +1,4 @@ +// 代码格式化 module.exports = { printWidth: 120, tabWidth: 2, diff --git a/src/api/system/user.js b/src/api/system/user.js index 968bbe0..f921aa5 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -1,5 +1,5 @@ import request from '@/utils/request'; -import { parseStrEmpty } from '@/utils/ruoyi'; +import { parseStrEmpty } from '@/utils/common'; // 查询用户列表 export function listUser(query) { diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 48ea8c0..ba2b919 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -20,8 +20,12 @@
请上传 - - + + 的文件
@@ -39,7 +43,7 @@ -