Browse Source

配置环境

gcz 2 years ago
parent
commit
86a876634d
4 changed files with 17 additions and 4 deletions
  1. 4 1
      .env.development
  2. 11 2
      .env.production
  3. 1 0
      README.md
  4. 1 1
      src/views/register.vue

+ 4 - 1
.env.development

@@ -6,4 +6,7 @@ VUE_APP_BASE_API = '/company-api'
 
 
 # 路由懒加载
-VUE_CLI_BABEL_TRANSPILE_MODULES = true
+VUE_CLI_BABEL_TRANSPILE_MODULES = true
+
+# 上传地址
+VUE_APP_FILE_UPLOAD_URL = 'https://wx.hw.hongweisoft.com/veterans/file/upload/single/minio'

+ 11 - 2
.env.production

@@ -1,5 +1,14 @@
 # 生产环境配置
 NODE_ENV = production
 
-# 生产环境 VUE_APP_BASE_API = 'http://wx.hw.hongweisoft.com/veterans/company/'
-VUE_APP_BASE_API = 'http://api.veterans.hongweisoft.com/company/'
+# 64生产环境 
+VUE_APP_BASE_API = 'http://wx.hw.hongweisoft.com/veterans/company/'
+# 64上传地址
+VUE_APP_FILE_UPLOAD_URL = 'https://wx.hw.hongweisoft.com/veterans/file/upload/single/minio'
+
+# 正式api
+# VUE_APP_BASE_API = 'http://api.veterans.hongweisoft.com/company/'
+# 正式上传地址
+# VUE_APP_FILE_UPLOAD_URL = 'http://api.veterans.hongweisoft.com/file/upload/single/minio'
+
+

+ 1 - 0
README.md

@@ -1,4 +1,5 @@
 # veterans_company
+- node版本 v12.16.3
 
 ## Project setup
 ```

+ 1 - 1
src/views/register.vue

@@ -332,7 +332,7 @@ export default {
       }
     };
     return {
-      upAction:process.env.VUE_APP_BASE_API+'/file/upload/single/minio',
+      upAction:process.env.VUE_APP_FILE_UPLOAD_URL,
       logoUrl: "",
       licenseFileList: [],
       companyfileList: [],