Browse Source

配置更新

dct 6 months ago
parent
commit
bee905e631
7 changed files with 8399 additions and 1506 deletions
  1. 0 4
      .husky/commit-msg
  2. 0 3
      commitlint.config.js
  3. 7447 0
      package-lock.json
  4. 0 5
      package.json
  5. 2 2
      src/utils/request.js
  6. 1 1
      vite.config.js
  7. 949 1491
      yarn.lock

+ 0 - 4
.husky/commit-msg

@@ -1,4 +0,0 @@
-#!/bin/sh
-. "$(dirname "$0")/_/husky.sh"
-
-npx --no-install commitlint --edit "$1"

+ 0 - 3
commitlint.config.js

@@ -1,3 +0,0 @@
-module.exports = {
-  extends: ['@commitlint/config-conventional']
-}

File diff suppressed because it is too large
+ 7447 - 0
package-lock.json


+ 0 - 5
package.json

@@ -9,8 +9,6 @@
     "build:admin": "vite build --mode admin",
     "build:agent": "vite build --mode agent",
     "serve": "vite preview",
-    "prepare": "husky install",
-    "commit": "git-cz",
     "changelog": "conventional-changelog -p angular -i ./CHANGELOG.md -w -r 10 -s && npm run getUpdate",
     "getUpdate": "node ./generateUpdate"
   },
@@ -36,8 +34,6 @@
     "vuex": "^4.0.0"
   },
   "devDependencies": {
-    "@commitlint/cli": "^13.1.0",
-    "@commitlint/config-conventional": "^13.1.0",
     "@vitejs/plugin-vue": "^1.1.5",
     "@vue/compiler-sfc": "^3.2.7",
     "@vue/eslint-config-standard": "^6.0.0",
@@ -50,7 +46,6 @@
     "eslint-plugin-node": "^11.1.0",
     "eslint-plugin-promise": "^4.3.1",
     "eslint-plugin-vue": "^7.7.0",
-    "husky": "^7.0.2",
     "marked": "^3.0.4",
     "sass": "^1.32.8",
     "vite": "^2.0.5"

+ 2 - 2
src/utils/request.js

@@ -13,10 +13,10 @@ const service = axios.create({
 // request拦截器
 service.interceptors.request.use(config => {
   const token = localStorage.clearauthtoken_tenant
-  
+
   if (token) {
     Object.assign(config, {
-      headers: { SaToken: token, }
+      headers: { SaToken: token }
     })
   }
 

+ 1 - 1
vite.config.js

@@ -28,7 +28,7 @@ export default defineConfig(({ command, mode }) => {
         },
         '/tenant': {
         // target: 'https://pdev.cleartv.cn/cticketmember/',
-          target: 'https://oriented-quail-refined.ngrok-free.app/',
+          target: 'http://114.104.160.233:28002/',
           changeOrigin: true,
           rewrite: (path) => path.replace(/^\/api/, '')
         }

File diff suppressed because it is too large
+ 949 - 1491
yarn.lock