diff --git a/.env b/.env index 3f4514a..a32b763 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ # title -VITE_GLOB_APP_TITLE = SimpleAdmin +VITE_GLOB_APP_TITLE = 未病局管理系统 # 本地运行端口号 VITE_PORT = 8848 diff --git a/.env.production b/.env.production index e263ba5..ab13cea 100644 --- a/.env.production +++ b/.env.production @@ -25,10 +25,10 @@ VITE_PWA = true VITE_HTTP_PROXY = true # 线上环境接口地址 -VITE_API_URL = http://127.0.0.1:5566 +VITE_API_URL = http://medical.23544.com:7106/ # 开发环境跨域代理,支持配置多个 -VITE_PROXY = [["/api","http://127.0.0.1:5566"]] +VITE_PROXY = [["/api","http://medical.23544.com:7106/"]] #是否启用mqtt VITE_MQTT = false diff --git a/.eslintrc.cjs b/.eslintrc.cjs index ae7f641..601304b 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -20,42 +20,40 @@ module.exports = { } }, // 继承某些已有的规则 - extends: ["plugin:vue/vue3-recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"], + extends: ["plugin:vue/vue3-recommended", "plugin:@typescript-eslint/recommended"], /** * "off" 或 0 ==> 关闭规则 * "warn" 或 1 ==> 打开的规则作为警告(不影响代码执行) * "error" 或 2 ==> 规则作为一个错误(代码不能执行,界面报错) */ rules: { - // eslint (http://eslint.cn/docs/rules) - "no-var": "error", // 要求使用 let 或 const 而不是 var - "no-multiple-empty-lines": ["error", { max: 1 }], // 不允许多个空行 - "prefer-const": "off", // 使用 let 关键字声明但在初始分配后从未重新分配的变量,要求使用 const - "no-use-before-define": "off", // 禁止在 函数/类/变量 定义之前使用它们 - - // typeScript (https://typescript-eslint.io/rules) - "@typescript-eslint/no-unused-vars": "error", // 禁止定义未使用的变量 - "@typescript-eslint/prefer-ts-expect-error": "error", // 禁止使用 @ts-ignore - "@typescript-eslint/no-empty-function": "error", // 禁止空函数 - "@typescript-eslint/ban-ts-comment": "error", // 禁止 @ts- 使用注释或要求在指令后进行描述 - "@typescript-eslint/no-inferrable-types": "off", // 可以轻松推断的显式类型可能会增加不必要的冗长 - "@typescript-eslint/no-namespace": "off", // 禁止使用自定义 TypeScript 模块和命名空间 - "@typescript-eslint/no-explicit-any": "off", // 禁止使用 any 类型 - "@typescript-eslint/ban-types": "off", // 禁止使用特定类型 - "@typescript-eslint/no-var-requires": "off", // 允许使用 require() 函数导入模块 - "@typescript-eslint/no-non-null-assertion": "off", // 不允许使用后缀运算符的非空断言(!) - - // vue (https://eslint.vuejs.org/rules) - "vue/script-setup-uses-vars": "error", // 防止 diff --git a/src/views/sys/WeiBingJu/Medicinal/components/AdditionRecordDialog.vue b/src/views/biz/weibingju/medicinal/components/AdditionRecordDialog.vue similarity index 75% rename from src/views/sys/WeiBingJu/Medicinal/components/AdditionRecordDialog.vue rename to src/views/biz/weibingju/medicinal/components/AdditionRecordDialog.vue index f3b1e85..b8e0e20 100644 --- a/src/views/sys/WeiBingJu/Medicinal/components/AdditionRecordDialog.vue +++ b/src/views/biz/weibingju/medicinal/components/AdditionRecordDialog.vue @@ -1,17 +1,14 @@