Procházet zdrojové kódy

6月20配置打包

yq1 před 5 měsíci
rodič
revize
c0eb65a268
4 změnil soubory, kde provedl 94 přidání a 92 odebrání
  1. 4 2
      .env.development
  2. 1 1
      .env.production
  3. 86 88
      package-lock.json
  4. 3 1
      src/http/index.js

+ 4 - 2
.env.development Zobrazit soubor

@@ -1,4 +1,6 @@
1 1
 ## base API 开发环境
2
-VUE_APP_BASE_API = 'http://127.0.0.1:9788'
3
-# NODE_ENV = 'development'
2
+# VUE_APP_BASE_API = 'sf.sgjyun.com'
3
+# VUE_APP_BASE_API = 'http://127.0.0.1:9788'
4
+
5
+# NODE_ENV = 'development' http://127.0.0.1:9788
4 6
 # BASE_URL = "http://localhost:8080/admin-vue/"

+ 1 - 1
.env.production Zobrazit soubor

@@ -1,2 +1,2 @@
1 1
 # 上线环境
2
-VUE_APP_BASE_API = 'http://localhost:8080/admin-vue/'
2
+# VUE_APP_BASE_API = 'sf.sgjyun.com'

+ 86 - 88
package-lock.json Zobrazit soubor

@@ -2243,6 +2243,44 @@
2243 2243
           "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
2244 2244
           "dev": true
2245 2245
         },
2246
+        "ansi-styles": {
2247
+          "version": "4.3.0",
2248
+          "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
2249
+          "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
2250
+          "dev": true,
2251
+          "optional": true,
2252
+          "requires": {
2253
+            "color-convert": "^2.0.1"
2254
+          }
2255
+        },
2256
+        "chalk": {
2257
+          "version": "4.1.2",
2258
+          "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
2259
+          "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
2260
+          "dev": true,
2261
+          "optional": true,
2262
+          "requires": {
2263
+            "ansi-styles": "^4.1.0",
2264
+            "supports-color": "^7.1.0"
2265
+          }
2266
+        },
2267
+        "color-convert": {
2268
+          "version": "2.0.1",
2269
+          "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
2270
+          "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
2271
+          "dev": true,
2272
+          "optional": true,
2273
+          "requires": {
2274
+            "color-name": "~1.1.4"
2275
+          }
2276
+        },
2277
+        "color-name": {
2278
+          "version": "1.1.4",
2279
+          "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
2280
+          "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
2281
+          "dev": true,
2282
+          "optional": true
2283
+        },
2246 2284
         "debug": {
2247 2285
           "version": "4.3.4",
2248 2286
           "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
@@ -2252,6 +2290,32 @@
2252 2290
             "ms": "2.1.2"
2253 2291
           }
2254 2292
         },
2293
+        "has-flag": {
2294
+          "version": "4.0.0",
2295
+          "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
2296
+          "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
2297
+          "dev": true,
2298
+          "optional": true
2299
+        },
2300
+        "json5": {
2301
+          "version": "2.2.3",
2302
+          "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
2303
+          "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
2304
+          "dev": true,
2305
+          "optional": true
2306
+        },
2307
+        "loader-utils": {
2308
+          "version": "2.0.4",
2309
+          "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz",
2310
+          "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==",
2311
+          "dev": true,
2312
+          "optional": true,
2313
+          "requires": {
2314
+            "big.js": "^5.2.2",
2315
+            "emojis-list": "^3.0.0",
2316
+            "json5": "^2.1.2"
2317
+          }
2318
+        },
2255 2319
         "ms": {
2256 2320
           "version": "2.1.2",
2257 2321
           "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
@@ -2266,6 +2330,28 @@
2266 2330
           "requires": {
2267 2331
             "minipass": "^3.1.1"
2268 2332
           }
2333
+        },
2334
+        "supports-color": {
2335
+          "version": "7.2.0",
2336
+          "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
2337
+          "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
2338
+          "dev": true,
2339
+          "optional": true,
2340
+          "requires": {
2341
+            "has-flag": "^4.0.0"
2342
+          }
2343
+        },
2344
+        "vue-loader-v16": {
2345
+          "version": "npm:vue-loader@16.8.3",
2346
+          "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
2347
+          "integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
2348
+          "dev": true,
2349
+          "optional": true,
2350
+          "requires": {
2351
+            "chalk": "^4.1.0",
2352
+            "hash-sum": "^2.0.0",
2353
+            "loader-utils": "^2.0.0"
2354
+          }
2269 2355
         }
2270 2356
       }
2271 2357
     },
@@ -12127,94 +12213,6 @@
12127 12213
         }
12128 12214
       }
12129 12215
     },
12130
-    "vue-loader-v16": {
12131
-      "version": "npm:vue-loader@16.8.3",
12132
-      "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
12133
-      "integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
12134
-      "dev": true,
12135
-      "optional": true,
12136
-      "requires": {
12137
-        "chalk": "^4.1.0",
12138
-        "hash-sum": "^2.0.0",
12139
-        "loader-utils": "^2.0.0"
12140
-      },
12141
-      "dependencies": {
12142
-        "ansi-styles": {
12143
-          "version": "4.3.0",
12144
-          "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
12145
-          "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
12146
-          "dev": true,
12147
-          "optional": true,
12148
-          "requires": {
12149
-            "color-convert": "^2.0.1"
12150
-          }
12151
-        },
12152
-        "chalk": {
12153
-          "version": "4.1.2",
12154
-          "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
12155
-          "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
12156
-          "dev": true,
12157
-          "optional": true,
12158
-          "requires": {
12159
-            "ansi-styles": "^4.1.0",
12160
-            "supports-color": "^7.1.0"
12161
-          }
12162
-        },
12163
-        "color-convert": {
12164
-          "version": "2.0.1",
12165
-          "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
12166
-          "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
12167
-          "dev": true,
12168
-          "optional": true,
12169
-          "requires": {
12170
-            "color-name": "~1.1.4"
12171
-          }
12172
-        },
12173
-        "color-name": {
12174
-          "version": "1.1.4",
12175
-          "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
12176
-          "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
12177
-          "dev": true,
12178
-          "optional": true
12179
-        },
12180
-        "has-flag": {
12181
-          "version": "4.0.0",
12182
-          "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
12183
-          "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
12184
-          "dev": true,
12185
-          "optional": true
12186
-        },
12187
-        "json5": {
12188
-          "version": "2.2.3",
12189
-          "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
12190
-          "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
12191
-          "dev": true,
12192
-          "optional": true
12193
-        },
12194
-        "loader-utils": {
12195
-          "version": "2.0.4",
12196
-          "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz",
12197
-          "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==",
12198
-          "dev": true,
12199
-          "optional": true,
12200
-          "requires": {
12201
-            "big.js": "^5.2.2",
12202
-            "emojis-list": "^3.0.0",
12203
-            "json5": "^2.1.2"
12204
-          }
12205
-        },
12206
-        "supports-color": {
12207
-          "version": "7.2.0",
12208
-          "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
12209
-          "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
12210
-          "dev": true,
12211
-          "optional": true,
12212
-          "requires": {
12213
-            "has-flag": "^4.0.0"
12214
-          }
12215
-        }
12216
-      }
12217
-    },
12218 12216
     "vue-particles": {
12219 12217
       "version": "1.0.9",
12220 12218
       "resolved": "https://registry.npmjs.org/vue-particles/-/vue-particles-1.0.9.tgz",

+ 3 - 1
src/http/index.js Zobrazit soubor

@@ -5,7 +5,9 @@ import { getToken } from '@/utils/auth';
5 5
 import QS from 'qs'
6 6
 // 创建axios实例
7 7
 const service = axios.create({
8
-    baseURL: process.env.VUE_APP_BASE_API, //URL地址   环境变量文件 .env.development
8
+  // 'http://127.0.0.1:9788'  process.env.VUE_APP_BASE_API 'sf.sgjyun.com'
9
+    // baseURL: process.env.VUE_APP_BASE_API , //URL地址   环境变量文件 
10
+    baseURL: 'http://127.0.0.1:9788',
9 11
     timeout: 5000 ,//超时
10 12
     withCredentials: true,  //跨域时若要发生cookie,需要设置该选项
11 13
 })