Browse Source

配合产学园软测,接口ip改至165

wangtao 2 năm trước cách đây
mục cha
commit
20391a030d
4 tập tin đã thay đổi với 32 bổ sung11 xóa
  1. 3 2
      .env.development
  2. 8 3
      .env.production
  3. 17 3
      public/static/config.js
  4. 4 3
      vue.config.js

+ 3 - 2
.env.development

@@ -2,7 +2,8 @@
 	NODE_ENV='development'
 	VUE_APP_ENV = development
 	// 下面的为接口地址。此处/api是我经过webpack设置跨域代理之后的地址
-	// VUE_APP_BASE_URL='https://qhome.usky.cn/uskypower/'
-	VUE_APP_BASE_URL='http://172.16.120.238:8011/'
+	#  VUE_APP_BASE_URL='https://qhome.usky.cn/uskypower/'
+	# VUE_APP_BASE_URL='http://172.16.120.238:8011/'
+	VUE_APP_BASE_URL='http://172.16.120.165:8011/'
 	VUE_APP_IMAGES='https://qhome.usky.cn/uskyfile/'
 	VUE_APP_FILE_URL='https://qhome.usky.cn/uskyfile/'

+ 8 - 3
.env.production

@@ -2,6 +2,11 @@
 NODE_ENV = 'production'
 VUE_APP_ENV = production
 // 下方链接为生产环境接口地址
-VUE_APP_BASE_URL='http://qhome-pro.usky.cn/uskypower/'
-VUE_APP_IMAGES='http://qhome-pro.usky.cn/uskyfile/'
-VUE_APP_FILE_URL='http://qhome-pro.usky.cn/uskyfile/'
+# VUE_APP_BASE_URL='http://qhome-pro.usky.cn/uskypower/'
+# VUE_APP_IMAGES='http://qhome-pro.usky.cn/uskyfile/'
+# VUE_APP_FILE_URL='http://qhome-pro.usky.cn/uskyfile/'
+
+VUE_APP_BASE_URL='http://172.16.120.165:8011/'
+VUE_APP_IMAGES='http://172.16.120.165:8011/'
+VUE_APP_FILE_URL='http://172.16.120.165:8011/'
+

+ 17 - 3
public/static/config.js

@@ -1,3 +1,11 @@
+/*
+ * @Descripttion: 
+ * @version: 
+ * @Author: wt
+ * @Date: 2023-02-17 17:57:52
+ * @LastEditors: wt
+ * @LastEditTime: 2023-02-17 18:00:54
+ */
 // api 请求路径
 
 
@@ -13,9 +21,15 @@ var PLATFROM_CONFIG = {};
 // console.log('goooooo' + process.env.VUE_APP_BASE_URL);
 // console.log('goooooo' + process.env.VUE_APP_ENV);
 
-PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/uskypower/" //线上--->测试
-PLATFROM_CONFIG.images = "https://qhome.usky.cn/uskyfile/" //线上图片--->测试
-PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/uskyfile/" //xlsx文件访问路径--->测试
+// PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/uskypower/" //线上--->测试
+// PLATFROM_CONFIG.images = "https://qhome.usky.cn/uskyfile/" //线上图片--->测试
+// PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/uskyfile/" //xlsx文件访问路径--->测试
+
+PLATFROM_CONFIG.baseUrl = "http://172.16.120.165:8011/" //线上--->测试
+PLATFROM_CONFIG.images = "http://172.16.120.165:8011/" //线上图片--->测试
+PLATFROM_CONFIG.fileUrl = "http://172.16.120.165:8011/" //xlsx文件访问路径--->测试
+
+
 
 // if (window.location.host.indexOf('localhost') != -1 || window.location.host.indexOf('pcdev.ewoogi.com') != -1) {
 //     PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/uskypower/" //线上--->测试

+ 4 - 3
vue.config.js

@@ -73,7 +73,8 @@ module.exports = {
             //     },
             //   },
             './': {
-                target: 'https://qhome.usky.cn/uskypower/',
+                // target: 'https://qhome.usky.cn/uskypower/',
+                target: 'http://172.16.120.165:8011/',
                 ws: false,
                 changeOrigin: true,
                 pathRewrite: {
@@ -176,9 +177,9 @@ module.exports = {
                             archive: [{
                                 source: `./${outputDir}`,
                                 destination: `./${outputDir}/${abbreviation}_${outputDir}_${date}.7z`,
-                            },],
+                            }, ],
                         },
-                    },])
+                    }, ])
                     .end()
             })
         }