修改了一些eslint的配置。
This commit is contained in:
		@@ -2,24 +2,27 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2022-12-14 15:12:46
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-28 15:26:13
 | 
			
		||||
 * @FilePath: /deskop_task_schedule/code/web/task_schedule/.eslintrc.js
 | 
			
		||||
 * @LastEditTime: 2023-03-05 00:14:41
 | 
			
		||||
 * @FilePath: /task_schedule/.eslintrc.cjs
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
module.exports = {
 | 
			
		||||
  root: true,
 | 
			
		||||
  env: {
 | 
			
		||||
  env: { //需要在 env 中指定运行的环境,这些环境其实就是一组预定义的全局变量,让 ESLint 知道当前环境存在这些全局变量
 | 
			
		||||
    node: true,
 | 
			
		||||
    browser: true,
 | 
			
		||||
    es2021: true,
 | 
			
		||||
  },
 | 
			
		||||
  "extends": [
 | 
			
		||||
  extends: [
 | 
			
		||||
    "plugin:vue/vue3-essential",
 | 
			
		||||
    "eslint:recommended",
 | 
			
		||||
  ],
 | 
			
		||||
  // parser: "@babel/eslint-parser",
 | 
			
		||||
  parserOptions: {
 | 
			
		||||
    ecmaVersion: 2021,
 | 
			
		||||
    sourceType: "module",
 | 
			
		||||
    parser: "@babel/eslint-parser",
 | 
			
		||||
    requireConfigFile: false,
 | 
			
		||||
  },
 | 
			
		||||
@@ -28,6 +31,7 @@ module.exports = {
 | 
			
		||||
    "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
 | 
			
		||||
    "no-unused-vars": "warn",
 | 
			
		||||
    "semi": ["error", "always",], //控制行尾部分号
 | 
			
		||||
    "quotes": ["error", "double",],
 | 
			
		||||
    "comma-dangle": ["error", {
 | 
			
		||||
      "arrays": "always",
 | 
			
		||||
      "objects": "always",
 | 
			
		||||
@@ -41,7 +45,7 @@ module.exports = {
 | 
			
		||||
    "no-invalid-this": "error",
 | 
			
		||||
    "no-use-before-define": "error",
 | 
			
		||||
    "no-shadow-restricted-names": "error", //禁止对一些关键字或者保留字进行赋值操作,比如NaN、Infinity、undefined、eval、arguments等
 | 
			
		||||
    // "comma-spacing": ["error", { "before": false, "after": true, },],
 | 
			
		||||
    "comma-spacing": ["error", { "before": false, "after": true, },],
 | 
			
		||||
    "brace-style": ["error", "allman", { "allowSingleLine": true, },],
 | 
			
		||||
    "prefer-const": "warn",
 | 
			
		||||
  },
 | 
			
		||||
@@ -49,18 +53,41 @@ module.exports = {
 | 
			
		||||
    {
 | 
			
		||||
      files: ["*.ts",],
 | 
			
		||||
      parser: "@typescript-eslint/parser",
 | 
			
		||||
      parserOptions: {
 | 
			
		||||
        project: "./tsconfig.json",
 | 
			
		||||
      },
 | 
			
		||||
      plugins: ["@typescript-eslint",],
 | 
			
		||||
      extends: [
 | 
			
		||||
        // "standard-with-typescript",
 | 
			
		||||
        "standard-with-typescript",
 | 
			
		||||
        "eslint:recommended",
 | 
			
		||||
        "plugin:@typescript-eslint/eslint-recommended",
 | 
			
		||||
        "plugin:@typescript-eslint/recommended",
 | 
			
		||||
      ],
 | 
			
		||||
      rules: {
 | 
			
		||||
        "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
 | 
			
		||||
        "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
 | 
			
		||||
        "@typescript-eslint/indent": ["error", 4,],
 | 
			
		||||
        "@typescript-eslint/no-extra-semi": "off",
 | 
			
		||||
        "@typescript-eslint/no-inferrable-types": "off",
 | 
			
		||||
        "@typescript-eslint/no-unused-vars": "warn",
 | 
			
		||||
        "@typescript-eslint/ban-ts-comment": "warn",
 | 
			
		||||
        "@typescript-eslint/member-delimiter-style": "off",
 | 
			
		||||
        "@typescript-eslint/semi": ["error", "always",], //控制行尾部分号
 | 
			
		||||
        "@typescript-eslint/brace-style": ["error", "allman", { "allowSingleLine": true, },],
 | 
			
		||||
        "@typescript-eslint/comma-dangle": ["error", {
 | 
			
		||||
          "arrays": "always",
 | 
			
		||||
          "objects": "always",
 | 
			
		||||
          "imports": "never",
 | 
			
		||||
          "exports": "never",
 | 
			
		||||
          "functions": "never",
 | 
			
		||||
        },], //数组和对象键值对最后一个逗号
 | 
			
		||||
        "comma-style": ["error", "last",], //逗号在行位
 | 
			
		||||
        "array-bracket-spacing": ["error", "never",],
 | 
			
		||||
        "no-undef-init": "error",
 | 
			
		||||
        "no-invalid-this": "error",
 | 
			
		||||
        "no-use-before-define": "error",
 | 
			
		||||
        "no-shadow-restricted-names": "error", //禁止对一些关键字或者保留字进行赋值操作,比如NaN、Infinity、undefined、eval、arguments等
 | 
			
		||||
        "prefer-const": "warn",
 | 
			
		||||
      },
 | 
			
		||||
    },
 | 
			
		||||
  ],
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										189
									
								
								code/web/task_schedule/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										189
									
								
								code/web/task_schedule/package-lock.json
									
									
									
										generated
									
									
									
								
							@@ -28,6 +28,7 @@
 | 
			
		||||
                "@vue/cli-plugin-eslint": "^5.0.8",
 | 
			
		||||
                "eslint": "^8.35.0",
 | 
			
		||||
                "eslint-config-recommended": "^4.1.0",
 | 
			
		||||
                "eslint-config-standard-with-typescript": "^34.0.0",
 | 
			
		||||
                "eslint-plugin-vue": "^9.9.0",
 | 
			
		||||
                "sass": "^1.58.3",
 | 
			
		||||
                "vite": "^4.1.0"
 | 
			
		||||
@@ -2583,6 +2584,52 @@
 | 
			
		||||
            "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
 | 
			
		||||
            "dev": true
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/builtins": {
 | 
			
		||||
            "version": "5.0.1",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/builtins/-/builtins-5.0.1.tgz",
 | 
			
		||||
            "integrity": "sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==",
 | 
			
		||||
            "dev": true,
 | 
			
		||||
            "peer": true,
 | 
			
		||||
            "dependencies": {
 | 
			
		||||
                "semver": "^7.0.0"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/builtins/node_modules/lru-cache": {
 | 
			
		||||
            "version": "6.0.0",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz",
 | 
			
		||||
            "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
 | 
			
		||||
            "dev": true,
 | 
			
		||||
            "peer": true,
 | 
			
		||||
            "dependencies": {
 | 
			
		||||
                "yallist": "^4.0.0"
 | 
			
		||||
            },
 | 
			
		||||
            "engines": {
 | 
			
		||||
                "node": ">=10"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/builtins/node_modules/semver": {
 | 
			
		||||
            "version": "7.3.8",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/semver/-/semver-7.3.8.tgz",
 | 
			
		||||
            "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==",
 | 
			
		||||
            "dev": true,
 | 
			
		||||
            "peer": true,
 | 
			
		||||
            "dependencies": {
 | 
			
		||||
                "lru-cache": "^6.0.0"
 | 
			
		||||
            },
 | 
			
		||||
            "bin": {
 | 
			
		||||
                "semver": "bin/semver.js"
 | 
			
		||||
            },
 | 
			
		||||
            "engines": {
 | 
			
		||||
                "node": ">=10"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/builtins/node_modules/yallist": {
 | 
			
		||||
            "version": "4.0.0",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz",
 | 
			
		||||
            "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
 | 
			
		||||
            "dev": true,
 | 
			
		||||
            "peer": true
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/bytes": {
 | 
			
		||||
            "version": "3.0.0",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/bytes/-/bytes-3.0.0.tgz",
 | 
			
		||||
@@ -5568,6 +5615,36 @@
 | 
			
		||||
                "which": "bin/which"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/eslint-config-standard": {
 | 
			
		||||
            "version": "17.0.0",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/eslint-config-standard/-/eslint-config-standard-17.0.0.tgz",
 | 
			
		||||
            "integrity": "sha512-/2ks1GKyqSOkH7JFvXJicu0iMpoojkwB+f5Du/1SC0PtBL+s8v30k9njRZ21pm2drKYm2342jFnGWzttxPmZVg==",
 | 
			
		||||
            "dev": true,
 | 
			
		||||
            "peerDependencies": {
 | 
			
		||||
                "eslint": "^8.0.1",
 | 
			
		||||
                "eslint-plugin-import": "^2.25.2",
 | 
			
		||||
                "eslint-plugin-n": "^15.0.0",
 | 
			
		||||
                "eslint-plugin-promise": "^6.0.0"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/eslint-config-standard-with-typescript": {
 | 
			
		||||
            "version": "34.0.0",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-34.0.0.tgz",
 | 
			
		||||
            "integrity": "sha512-zhCsI4/A0rJ1ma8sf3RLXYc0gc7yPmdTWRVXMh9dtqeUx3yBQyALH0wosHhk1uQ9QyItynLdNOtcHKNw8G7lQw==",
 | 
			
		||||
            "dev": true,
 | 
			
		||||
            "dependencies": {
 | 
			
		||||
                "@typescript-eslint/parser": "^5.0.0",
 | 
			
		||||
                "eslint-config-standard": "17.0.0"
 | 
			
		||||
            },
 | 
			
		||||
            "peerDependencies": {
 | 
			
		||||
                "@typescript-eslint/eslint-plugin": "^5.0.0",
 | 
			
		||||
                "eslint": "^8.0.1",
 | 
			
		||||
                "eslint-plugin-import": "^2.25.2",
 | 
			
		||||
                "eslint-plugin-n": "^15.0.0",
 | 
			
		||||
                "eslint-plugin-promise": "^6.0.0",
 | 
			
		||||
                "typescript": "*"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/eslint-import-resolver-node": {
 | 
			
		||||
            "version": "0.3.7",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz",
 | 
			
		||||
@@ -5629,6 +5706,46 @@
 | 
			
		||||
                "eslint": ">=4.0.0"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/eslint-plugin-es": {
 | 
			
		||||
            "version": "4.1.0",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/eslint-plugin-es/-/eslint-plugin-es-4.1.0.tgz",
 | 
			
		||||
            "integrity": "sha512-GILhQTnjYE2WorX5Jyi5i4dz5ALWxBIdQECVQavL6s7cI76IZTDWleTHkxz/QT3kvcs2QlGHvKLYsSlPOlPXnQ==",
 | 
			
		||||
            "dev": true,
 | 
			
		||||
            "peer": true,
 | 
			
		||||
            "dependencies": {
 | 
			
		||||
                "eslint-utils": "^2.0.0",
 | 
			
		||||
                "regexpp": "^3.0.0"
 | 
			
		||||
            },
 | 
			
		||||
            "engines": {
 | 
			
		||||
                "node": ">=8.10.0"
 | 
			
		||||
            },
 | 
			
		||||
            "peerDependencies": {
 | 
			
		||||
                "eslint": ">=4.19.1"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/eslint-plugin-es/node_modules/eslint-utils": {
 | 
			
		||||
            "version": "2.1.0",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/eslint-utils/-/eslint-utils-2.1.0.tgz",
 | 
			
		||||
            "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==",
 | 
			
		||||
            "dev": true,
 | 
			
		||||
            "peer": true,
 | 
			
		||||
            "dependencies": {
 | 
			
		||||
                "eslint-visitor-keys": "^1.1.0"
 | 
			
		||||
            },
 | 
			
		||||
            "engines": {
 | 
			
		||||
                "node": ">=6"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/eslint-plugin-es/node_modules/eslint-visitor-keys": {
 | 
			
		||||
            "version": "1.3.0",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz",
 | 
			
		||||
            "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==",
 | 
			
		||||
            "dev": true,
 | 
			
		||||
            "peer": true,
 | 
			
		||||
            "engines": {
 | 
			
		||||
                "node": ">=4"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/eslint-plugin-import": {
 | 
			
		||||
            "version": "2.27.5",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz",
 | 
			
		||||
@@ -5679,6 +5796,78 @@
 | 
			
		||||
                "node": ">=0.10.0"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/eslint-plugin-n": {
 | 
			
		||||
            "version": "15.6.1",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/eslint-plugin-n/-/eslint-plugin-n-15.6.1.tgz",
 | 
			
		||||
            "integrity": "sha512-R9xw9OtCRxxaxaszTQmQAlPgM+RdGjaL1akWuY/Fv9fRAi8Wj4CUKc6iYVG8QNRjRuo8/BqVYIpfqberJUEacA==",
 | 
			
		||||
            "dev": true,
 | 
			
		||||
            "peer": true,
 | 
			
		||||
            "dependencies": {
 | 
			
		||||
                "builtins": "^5.0.1",
 | 
			
		||||
                "eslint-plugin-es": "^4.1.0",
 | 
			
		||||
                "eslint-utils": "^3.0.0",
 | 
			
		||||
                "ignore": "^5.1.1",
 | 
			
		||||
                "is-core-module": "^2.11.0",
 | 
			
		||||
                "minimatch": "^3.1.2",
 | 
			
		||||
                "resolve": "^1.22.1",
 | 
			
		||||
                "semver": "^7.3.8"
 | 
			
		||||
            },
 | 
			
		||||
            "engines": {
 | 
			
		||||
                "node": ">=12.22.0"
 | 
			
		||||
            },
 | 
			
		||||
            "peerDependencies": {
 | 
			
		||||
                "eslint": ">=7.0.0"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/eslint-plugin-n/node_modules/lru-cache": {
 | 
			
		||||
            "version": "6.0.0",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz",
 | 
			
		||||
            "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
 | 
			
		||||
            "dev": true,
 | 
			
		||||
            "peer": true,
 | 
			
		||||
            "dependencies": {
 | 
			
		||||
                "yallist": "^4.0.0"
 | 
			
		||||
            },
 | 
			
		||||
            "engines": {
 | 
			
		||||
                "node": ">=10"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/eslint-plugin-n/node_modules/semver": {
 | 
			
		||||
            "version": "7.3.8",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/semver/-/semver-7.3.8.tgz",
 | 
			
		||||
            "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==",
 | 
			
		||||
            "dev": true,
 | 
			
		||||
            "peer": true,
 | 
			
		||||
            "dependencies": {
 | 
			
		||||
                "lru-cache": "^6.0.0"
 | 
			
		||||
            },
 | 
			
		||||
            "bin": {
 | 
			
		||||
                "semver": "bin/semver.js"
 | 
			
		||||
            },
 | 
			
		||||
            "engines": {
 | 
			
		||||
                "node": ">=10"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/eslint-plugin-n/node_modules/yallist": {
 | 
			
		||||
            "version": "4.0.0",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz",
 | 
			
		||||
            "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
 | 
			
		||||
            "dev": true,
 | 
			
		||||
            "peer": true
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/eslint-plugin-promise": {
 | 
			
		||||
            "version": "6.1.1",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/eslint-plugin-promise/-/eslint-plugin-promise-6.1.1.tgz",
 | 
			
		||||
            "integrity": "sha512-tjqWDwVZQo7UIPMeDReOpUgHCmCiH+ePnVT+5zVapL0uuHnegBUs2smM13CzOs2Xb5+MHMRFTs9v24yjba4Oig==",
 | 
			
		||||
            "dev": true,
 | 
			
		||||
            "peer": true,
 | 
			
		||||
            "engines": {
 | 
			
		||||
                "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
 | 
			
		||||
            },
 | 
			
		||||
            "peerDependencies": {
 | 
			
		||||
                "eslint": "^7.0.0 || ^8.0.0"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/eslint-plugin-react": {
 | 
			
		||||
            "version": "7.32.2",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz",
 | 
			
		||||
 
 | 
			
		||||
@@ -29,6 +29,7 @@
 | 
			
		||||
        "@vue/cli-plugin-eslint": "^5.0.8",
 | 
			
		||||
        "eslint": "^8.35.0",
 | 
			
		||||
        "eslint-config-recommended": "^4.1.0",
 | 
			
		||||
        "eslint-config-standard-with-typescript": "^34.0.0",
 | 
			
		||||
        "eslint-plugin-vue": "^9.9.0",
 | 
			
		||||
        "sass": "^1.58.3",
 | 
			
		||||
        "vite": "^4.1.0"
 | 
			
		||||
 
 | 
			
		||||
@@ -35,22 +35,22 @@ export default {
 | 
			
		||||
        //设置图表
 | 
			
		||||
        const initCharts = () => 
 | 
			
		||||
        {
 | 
			
		||||
            const chartDom = document.getElementById('chartWrapper');
 | 
			
		||||
            const chartDom = document.getElementById("chartWrapper");
 | 
			
		||||
            //@ts-ignore
 | 
			
		||||
            const myChart = echarts.init((chartDom));
 | 
			
		||||
            const option = {
 | 
			
		||||
                xAxis: {
 | 
			
		||||
                    type: 'category',
 | 
			
		||||
                    type: "category",
 | 
			
		||||
                    data: ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二",],
 | 
			
		||||
                },
 | 
			
		||||
                yAxis: {
 | 
			
		||||
                    type: 'value',
 | 
			
		||||
                    type: "value",
 | 
			
		||||
                    data: [200, 400, 600, 800, 1000,],
 | 
			
		||||
                },
 | 
			
		||||
                series: [
 | 
			
		||||
                    {
 | 
			
		||||
                        data: [200, 230, 224, 218, 135, 147, 260,],
 | 
			
		||||
                        type: 'line',
 | 
			
		||||
                        type: "line",
 | 
			
		||||
                    },
 | 
			
		||||
                ],
 | 
			
		||||
            };
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-03-02 15:35:43
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @FilePath: /deskop_task_schedule/code/web/task_schedule/src/utils/api/config.js
 | 
			
		||||
 * @FilePath: /task_schedule/src/utils/api/config.ts
 | 
			
		||||
 * @Description:
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved.
 | 
			
		||||
 
 | 
			
		||||
@@ -8,28 +8,28 @@
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
import { defineConfig, loadEnv } from 'vite';
 | 
			
		||||
import vue from '@vitejs/plugin-vue';
 | 
			
		||||
import path from 'path';
 | 
			
		||||
import { defineConfig, loadEnv } from "vite";
 | 
			
		||||
import vue from "@vitejs/plugin-vue";
 | 
			
		||||
import path from "path";
 | 
			
		||||
 | 
			
		||||
// https://vitejs.dev/config/
 | 
			
		||||
export default defineConfig((command, mode) =>
 | 
			
		||||
{
 | 
			
		||||
  const env = loadEnv(mode, process.cwd(), '');
 | 
			
		||||
  const env = loadEnv(mode, process.cwd(), "");
 | 
			
		||||
 | 
			
		||||
  return {
 | 
			
		||||
    plugins: [vue(),],
 | 
			
		||||
    base: './',
 | 
			
		||||
    base: "./",
 | 
			
		||||
    resolve: {
 | 
			
		||||
      //配置别名
 | 
			
		||||
      alias: [
 | 
			
		||||
        {
 | 
			
		||||
          find: /^~/,
 | 
			
		||||
          replacement: '',
 | 
			
		||||
          replacement: "",
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          find: '@',
 | 
			
		||||
          replacement: path.resolve(__dirname, 'src'),
 | 
			
		||||
          find: "@",
 | 
			
		||||
          replacement: path.resolve(__dirname, "src"),
 | 
			
		||||
        },
 | 
			
		||||
      ],
 | 
			
		||||
    },
 | 
			
		||||
@@ -39,9 +39,9 @@ export default defineConfig((command, mode) =>
 | 
			
		||||
    css: {
 | 
			
		||||
      preprocessorOptions: {
 | 
			
		||||
        scss: {
 | 
			
		||||
          additionalData: `@import "./src/assets/css/public/color.scss";`
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
          additionalData: "@import \"./src/assets/css/public/color.scss\";",
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
    },
 | 
			
		||||
  };
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
@@ -624,7 +624,7 @@
 | 
			
		||||
  dependencies:
 | 
			
		||||
    "@types/node" "*"
 | 
			
		||||
 | 
			
		||||
"@typescript-eslint/eslint-plugin@^5.54.0":
 | 
			
		||||
"@typescript-eslint/eslint-plugin@^5.0.0", "@typescript-eslint/eslint-plugin@^5.54.0":
 | 
			
		||||
  "integrity" "sha512-+hSN9BdSr629RF02d7mMtXhAJvDTyCbprNYJKrXETlul/Aml6YZwd90XioVbjejQeHbb3R8Dg0CkRgoJDxo8aw=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.54.0.tgz"
 | 
			
		||||
  "version" "5.54.0"
 | 
			
		||||
@@ -1507,6 +1507,13 @@
 | 
			
		||||
    "base64-js" "^1.3.1"
 | 
			
		||||
    "ieee754" "^1.1.13"
 | 
			
		||||
 | 
			
		||||
"builtins@^5.0.1":
 | 
			
		||||
  "integrity" "sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/builtins/-/builtins-5.0.1.tgz"
 | 
			
		||||
  "version" "5.0.1"
 | 
			
		||||
  dependencies:
 | 
			
		||||
    "semver" "^7.0.0"
 | 
			
		||||
 | 
			
		||||
"bytes@3.0.0":
 | 
			
		||||
  "integrity" "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/bytes/-/bytes-3.0.0.tgz"
 | 
			
		||||
@@ -2447,6 +2454,19 @@
 | 
			
		||||
    "eslint-config-node" "^4.1.0"
 | 
			
		||||
    "eslint-config-react-native" "^4.1.0"
 | 
			
		||||
 | 
			
		||||
"eslint-config-standard-with-typescript@^34.0.0":
 | 
			
		||||
  "integrity" "sha512-zhCsI4/A0rJ1ma8sf3RLXYc0gc7yPmdTWRVXMh9dtqeUx3yBQyALH0wosHhk1uQ9QyItynLdNOtcHKNw8G7lQw=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-34.0.0.tgz"
 | 
			
		||||
  "version" "34.0.0"
 | 
			
		||||
  dependencies:
 | 
			
		||||
    "@typescript-eslint/parser" "^5.0.0"
 | 
			
		||||
    "eslint-config-standard" "17.0.0"
 | 
			
		||||
 | 
			
		||||
"eslint-config-standard@17.0.0":
 | 
			
		||||
  "integrity" "sha512-/2ks1GKyqSOkH7JFvXJicu0iMpoojkwB+f5Du/1SC0PtBL+s8v30k9njRZ21pm2drKYm2342jFnGWzttxPmZVg=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/eslint-config-standard/-/eslint-config-standard-17.0.0.tgz"
 | 
			
		||||
  "version" "17.0.0"
 | 
			
		||||
 | 
			
		||||
"eslint-import-resolver-node@^0.3.7":
 | 
			
		||||
  "integrity" "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz"
 | 
			
		||||
@@ -2470,7 +2490,15 @@
 | 
			
		||||
  dependencies:
 | 
			
		||||
    "eslint-rule-composer" "^0.3.0"
 | 
			
		||||
 | 
			
		||||
"eslint-plugin-import@^2.14.0":
 | 
			
		||||
"eslint-plugin-es@^4.1.0":
 | 
			
		||||
  "integrity" "sha512-GILhQTnjYE2WorX5Jyi5i4dz5ALWxBIdQECVQavL6s7cI76IZTDWleTHkxz/QT3kvcs2QlGHvKLYsSlPOlPXnQ=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/eslint-plugin-es/-/eslint-plugin-es-4.1.0.tgz"
 | 
			
		||||
  "version" "4.1.0"
 | 
			
		||||
  dependencies:
 | 
			
		||||
    "eslint-utils" "^2.0.0"
 | 
			
		||||
    "regexpp" "^3.0.0"
 | 
			
		||||
 | 
			
		||||
"eslint-plugin-import@^2.14.0", "eslint-plugin-import@^2.25.2":
 | 
			
		||||
  "integrity" "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz"
 | 
			
		||||
  "version" "2.27.5"
 | 
			
		||||
@@ -2491,6 +2519,25 @@
 | 
			
		||||
    "semver" "^6.3.0"
 | 
			
		||||
    "tsconfig-paths" "^3.14.1"
 | 
			
		||||
 | 
			
		||||
"eslint-plugin-n@^15.0.0":
 | 
			
		||||
  "integrity" "sha512-R9xw9OtCRxxaxaszTQmQAlPgM+RdGjaL1akWuY/Fv9fRAi8Wj4CUKc6iYVG8QNRjRuo8/BqVYIpfqberJUEacA=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/eslint-plugin-n/-/eslint-plugin-n-15.6.1.tgz"
 | 
			
		||||
  "version" "15.6.1"
 | 
			
		||||
  dependencies:
 | 
			
		||||
    "builtins" "^5.0.1"
 | 
			
		||||
    "eslint-plugin-es" "^4.1.0"
 | 
			
		||||
    "eslint-utils" "^3.0.0"
 | 
			
		||||
    "ignore" "^5.1.1"
 | 
			
		||||
    "is-core-module" "^2.11.0"
 | 
			
		||||
    "minimatch" "^3.1.2"
 | 
			
		||||
    "resolve" "^1.22.1"
 | 
			
		||||
    "semver" "^7.3.8"
 | 
			
		||||
 | 
			
		||||
"eslint-plugin-promise@^6.0.0":
 | 
			
		||||
  "integrity" "sha512-tjqWDwVZQo7UIPMeDReOpUgHCmCiH+ePnVT+5zVapL0uuHnegBUs2smM13CzOs2Xb5+MHMRFTs9v24yjba4Oig=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/eslint-plugin-promise/-/eslint-plugin-promise-6.1.1.tgz"
 | 
			
		||||
  "version" "6.1.1"
 | 
			
		||||
 | 
			
		||||
"eslint-plugin-react-native-globals@^0.1.1":
 | 
			
		||||
  "integrity" "sha512-9aEPf1JEpiTjcFAmmyw8eiIXmcNZOqaZyHO77wgm0/dWfT/oxC1SrIq8ET38pMxHYrcB6Uew+TzUVsBeczF88g=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/eslint-plugin-react-native-globals/-/eslint-plugin-react-native-globals-0.1.2.tgz"
 | 
			
		||||
@@ -2566,6 +2613,13 @@
 | 
			
		||||
  dependencies:
 | 
			
		||||
    "eslint-visitor-keys" "^1.1.0"
 | 
			
		||||
 | 
			
		||||
"eslint-utils@^2.0.0":
 | 
			
		||||
  "integrity" "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/eslint-utils/-/eslint-utils-2.1.0.tgz"
 | 
			
		||||
  "version" "2.1.0"
 | 
			
		||||
  dependencies:
 | 
			
		||||
    "eslint-visitor-keys" "^1.1.0"
 | 
			
		||||
 | 
			
		||||
"eslint-utils@^3.0.0":
 | 
			
		||||
  "integrity" "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/eslint-utils/-/eslint-utils-3.0.0.tgz"
 | 
			
		||||
@@ -2604,7 +2658,7 @@
 | 
			
		||||
    "normalize-path" "^3.0.0"
 | 
			
		||||
    "schema-utils" "^4.0.0"
 | 
			
		||||
 | 
			
		||||
"eslint@*", "eslint@^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8", "eslint@^3 || ^4 || ^5 || ^6 || ^7 || ^8", "eslint@^6.0.0 || ^7.0.0 || ^8.0.0", "eslint@^6.2.0 || ^7.0.0 || ^8.0.0", "eslint@^7.0.0 || ^8.0.0", "eslint@^7.5.0 || ^8.0.0", "eslint@^8.35.0", "eslint@>= 4.12.1", "eslint@>=4.0.0", "eslint@>=5", "eslint@>=6.0.0", "eslint@>=7.5.0":
 | 
			
		||||
"eslint@*", "eslint@^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8", "eslint@^3 || ^4 || ^5 || ^6 || ^7 || ^8", "eslint@^6.0.0 || ^7.0.0 || ^8.0.0", "eslint@^6.2.0 || ^7.0.0 || ^8.0.0", "eslint@^7.0.0 || ^8.0.0", "eslint@^7.5.0 || ^8.0.0", "eslint@^8.0.1", "eslint@^8.35.0", "eslint@>= 4.12.1", "eslint@>=4.0.0", "eslint@>=4.19.1", "eslint@>=5", "eslint@>=6.0.0", "eslint@>=7.0.0", "eslint@>=7.5.0":
 | 
			
		||||
  "integrity" "sha512-BxAf1fVL7w+JLRQhWl2pzGeSiGqbWumV4WNvc9Rhp6tiCtm4oHnyPBSEtMGZwrQgudFQ+otqzWoPB7x+hxoWsw=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/eslint/-/eslint-8.35.0.tgz"
 | 
			
		||||
  "version" "8.35.0"
 | 
			
		||||
@@ -3423,7 +3477,7 @@
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/ignore/-/ignore-4.0.6.tgz"
 | 
			
		||||
  "version" "4.0.6"
 | 
			
		||||
 | 
			
		||||
"ignore@^5.2.0":
 | 
			
		||||
"ignore@^5.1.1", "ignore@^5.2.0":
 | 
			
		||||
  "integrity" "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/ignore/-/ignore-5.2.4.tgz"
 | 
			
		||||
  "version" "5.2.4"
 | 
			
		||||
@@ -5100,7 +5154,7 @@
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/regexpp/-/regexpp-2.0.1.tgz"
 | 
			
		||||
  "version" "2.0.1"
 | 
			
		||||
 | 
			
		||||
"regexpp@^3.2.0":
 | 
			
		||||
"regexpp@^3.0.0", "regexpp@^3.2.0":
 | 
			
		||||
  "integrity" "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/regexpp/-/regexpp-3.2.0.tgz"
 | 
			
		||||
  "version" "3.2.0"
 | 
			
		||||
@@ -5304,6 +5358,13 @@
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/semver/-/semver-6.3.0.tgz"
 | 
			
		||||
  "version" "6.3.0"
 | 
			
		||||
 | 
			
		||||
"semver@^7.0.0":
 | 
			
		||||
  "integrity" "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/semver/-/semver-7.3.8.tgz"
 | 
			
		||||
  "version" "7.3.8"
 | 
			
		||||
  dependencies:
 | 
			
		||||
    "lru-cache" "^6.0.0"
 | 
			
		||||
 | 
			
		||||
"semver@^7.3.4":
 | 
			
		||||
  "integrity" "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/semver/-/semver-7.3.8.tgz"
 | 
			
		||||
@@ -5959,7 +6020,7 @@
 | 
			
		||||
    "for-each" "^0.3.3"
 | 
			
		||||
    "is-typed-array" "^1.1.9"
 | 
			
		||||
 | 
			
		||||
"typescript@^4.9.5", "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta":
 | 
			
		||||
"typescript@*", "typescript@^4.9.5", "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta":
 | 
			
		||||
  "integrity" "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g=="
 | 
			
		||||
  "resolved" "https://registry.npmmirror.com/typescript/-/typescript-4.9.5.tgz"
 | 
			
		||||
  "version" "4.9.5"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user