Browse Source

框架优化

九山 4 years ago
parent
commit
02b08e6dd9
4 changed files with 8 additions and 8 deletions
  1. 1 1
      .env.development
  2. 1 1
      .env.production
  3. 2 2
      .env.test
  4. 4 4
      package.json

+ 1 - 1
.env.development

@@ -1,2 +1,2 @@
-// 开发
+// 开发服务
 VUE_APP_API_URL=http://192.168.10.15:8082/
 VUE_APP_API_URL=http://192.168.10.15:8082/

+ 1 - 1
.env.production

@@ -1,2 +1,2 @@
-// 生产
+// 生产服务
 VUE_APP_API_URL=http://192.168.10.14:8082/
 VUE_APP_API_URL=http://192.168.10.14:8082/

+ 2 - 2
.env.test

@@ -1,2 +1,2 @@
-// 测试
-VUE_APP_API_URL=http://192.168.10.14:8082/
+// 测试服务
+VUE_APP_API_URL=http://test:8082/

+ 4 - 4
package.json

@@ -3,10 +3,10 @@
   "version": "0.1.0",
   "version": "0.1.0",
   "private": true,
   "private": true,
   "scripts": {
   "scripts": {
-    "dev": "vue-cli-service serve && webpack-dev-server --open",
-    "serve": "vue-cli-service serve",
-    "build": "vue-cli-service build",
-    "build:test": "vue-cli-service build --mode test"
+    "serve": "vue-cli-service serve && webpack-dev-server --open",
+    "dev": "vue-cli-service build --mode development",
+    "test": "vue-cli-service build --mode test",
+    "build": "vue-cli-service build"
   },
   },
   "dependencies": {
   "dependencies": {
     "axios": "^0.21.1",
     "axios": "^0.21.1",