Browse Source

feat(all): update

HuCheng 2 years ago
parent
commit
e35afd98fd
3 changed files with 16 additions and 3 deletions
  1. 8 1
      package.json
  2. 6 0
      pnpm-lock.yaml
  3. 2 2
      src/router/index.js

+ 8 - 1
package.json

@@ -6,7 +6,13 @@
     "dev": "vite",
     "build": "vite build",
     "preview": "vite preview",
-    "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore"
+    "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
+    "commit": "git add . && git cz"
+  },
+  "config": {
+    "commitizen": {
+      "path": "node_modules/cz-git"
+    }
   },
   "dependencies": {
     "@element-plus/icons-vue": "^2.0.10",
@@ -19,6 +25,7 @@
     "@rushstack/eslint-patch": "^1.1.4",
     "@vitejs/plugin-vue": "^4.0.0",
     "@vue/eslint-config-prettier": "^7.0.0",
+    "cz-git": "^1.4.1",
     "eslint": "^8.22.0",
     "eslint-plugin-vue": "^9.3.0",
     "prettier": "^2.7.1",

+ 6 - 0
pnpm-lock.yaml

@@ -6,6 +6,7 @@ specifiers:
   '@vitejs/plugin-vue': ^4.0.0
   '@vue/eslint-config-prettier': ^7.0.0
   axios: ^1.3.2
+  cz-git: ^1.4.1
   element-plus: ^2.2.29
   eslint: ^8.22.0
   eslint-plugin-vue: ^9.3.0
@@ -29,6 +30,7 @@ devDependencies:
   '@rushstack/eslint-patch': 1.2.0
   '@vitejs/plugin-vue': 4.0.0_vite@4.1.1+vue@3.2.47
   '@vue/eslint-config-prettier': 7.0.0_kcm2pbg4372aakdkvxabn7z2ri
+  cz-git: 1.4.1
   eslint: 8.33.0
   eslint-plugin-vue: 9.9.0_eslint@8.33.0
   prettier: 2.8.4
@@ -1058,6 +1060,10 @@ packages:
   /csstype/2.6.21:
     resolution: {integrity: sha512-Z1PhmomIfypOpoMjRQB70jfvy/wxT50qW08YXO5lMIJkrdq4yOTR+AW7FqutScmB9NkLwxo+jU+kZLbofZZq/w==}
 
+  /cz-git/1.4.1:
+    resolution: {integrity: sha512-EOtuitcnfxde8t3NNTKh2YxEJhLXGiVlKSVaZipK3+DVo135rEUifAfqxkslM66Nf6ZO7a+3JR+XAOLhMXUAjQ==}
+    dev: true
+
   /dayjs/1.11.7:
     resolution: {integrity: sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ==}
     dev: false

+ 2 - 2
src/router/index.js

@@ -10,8 +10,8 @@ const router = createRouter({
       component: LayoutView,
       children: [
         {
-          path: "/equipment",
-          component: () => import("@/views/equipment/index.vue"),
+          path: "equipment/source",
+          component: () => import("@/views/equipment/source/index.vue"),
         },
       ],
     },