chenlei пре 8 месеци
родитељ
комит
1397c6241e
3 измењених фајлова са 3 додато и 2 уклоњено
  1. 1 2
      package.json
  2. 1 0
      src/utils/services.ts
  3. 1 0
      tsconfig.json

+ 1 - 2
package.json

@@ -12,8 +12,7 @@
     "serve:syjy": "cross-env SCENE=syjy TITLE=中国民族博物馆-三亚家园线上展厅 HOT_DOMAIN=/hotspot.html vue-cli-service serve",
     "build:syjy:test": "cross-env SCENE=syjy TITLE=中国民族博物馆-三亚家园线上展厅 HOT_DOMAIN=/syjy-hotspot.html vue-cli-service build",
     "push:syjy": "cross-env SCENE=syjy node ./scripts/publish.js",
-    "lint": "vue-cli-service lint",
-    "prepare": "husky install"
+    "lint": "vue-cli-service lint"
   },
   "dependencies": {
     "axios": "^1.4.0",

+ 1 - 0
src/utils/services.ts

@@ -94,6 +94,7 @@ service.interceptors.request.use((config: Config) => {
 });
 
 service.interceptors.response.use(
+  // @ts-ignore
   (res) => {
     const { data, config }: { config: Config; data: DageResponse } = res;
 

+ 1 - 0
tsconfig.json

@@ -6,6 +6,7 @@
     "jsx": "preserve",
     "moduleResolution": "node",
     "experimentalDecorators": true,
+    "noImplicitAny": false,
     "skipLibCheck": true,
     "esModuleInterop": true,
     "allowSyntheticDefaultImports": true,