diff --git a/.env.development b/.env.development index 15b4152ac..d7827cfb4 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,8 @@ NODE_ENV = 'development' # VUE_APP_BASE_API = 'https://joylink.club/jlcloud' # VUE_APP_BASE_API = 'http://192.168.3.4:9000' VUE_APP_BASE_API = 'http://192.168.3.6:9000' -VUE_APP_VOICE_API = 'https://joylink.club/oss/joylink' +VUE_APP_VOICE_API = 'https://oss.joylink.club/oss/joylink' +VUE_APP_UPLOAD_API = 'https://oss.joylink.club/jlfile' # VUE_APP_VOICE_API = 'http://192.168.8.110:9008' diff --git a/.env.heb b/.env.heb index f5a79f312..5f78a725b 100644 --- a/.env.heb +++ b/.env.heb @@ -5,3 +5,4 @@ VUE_APP_PRO = 'local' # base api VUE_APP_BASE_API = 'https://joylink.club/jlcloud' VUE_APP_VOICE_API = 'https://joylink.club/oss/joylink' +VUE_APP_UPLOAD_API = 'https://oss.joylink.club/jlfile' diff --git a/.env.ntyl b/.env.ntyl index cbcd4c513..6f627f0a5 100644 --- a/.env.ntyl +++ b/.env.ntyl @@ -5,3 +5,4 @@ VUE_APP_PRO = 'ntyl' # base api VUE_APP_BASE_API = 'https://joylink.club/jlcloud' VUE_APP_VOICE_API = 'https://joylink.club/oss/joylink' +VUE_APP_UPLOAD_API = 'https://oss.joylink.club/jlfile' diff --git a/.env.production b/.env.production index 7319e5802..0e1b21424 100644 --- a/.env.production +++ b/.env.production @@ -2,5 +2,6 @@ NODE_ENV = 'production' # base api -VUE_APP_BASE_API = 'https://joylink.club/jlcloud' -VUE_APP_VOICE_API = 'https://joylink.club/oss/joylink' +VUE_APP_BASE_API = 'https://api.joylink.club/jlcloud' +VUE_APP_VOICE_API = 'https://oss.joylink.club/oss/joylink' +VUE_APP_UPLOAD_API = 'https://oss.joylink.club/jlfile' diff --git a/.env.staging b/.env.staging index 5051efa45..130d85550 100644 --- a/.env.staging +++ b/.env.staging @@ -3,4 +3,5 @@ NODE_ENV = 'test' # base api VUE_APP_BASE_API = 'https://test.joylink.club/jlcloud' -VUE_APP_VOICE_API = 'https://joylink.club/oss/joylink' +VUE_APP_VOICE_API = 'https://oss.joylink.club/oss/joylink' +VUE_APP_UPLOAD_API = 'https://oss.joylink.club/jlfile' diff --git a/src/components/QuillEditor/index.vue b/src/components/QuillEditor/index.vue index 44b96de50..e3efd670b 100644 --- a/src/components/QuillEditor/index.vue +++ b/src/components/QuillEditor/index.vue @@ -75,9 +75,9 @@ export default { loading: true, name: 'file', size: 3, - action: `https://test.joylink.club/jlfile/api/upload/PICTURE?appId=00001&appSecret=joylink00001`, + action: `${process.env.VUE_APP_VOICE_API}/api/upload/PICTURE?appId=00001&appSecret=joylink00001`, response: (res) => { - return `https://test.joylink.club/oss/joylink${res.data}`; + return `${process.env.VUE_APP_VOICE_API}/oss/joylink${res.data}`; }, error: () => { that.$message.error('图片上传失败,请检查网络状态'); }, sizeError: () => { that.$message.error('图片上传失败,图片大小限制3MB'); } // 图片超过大小的回调 diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index c0569ef83..bb19cc018 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -1,7 +1,7 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { - // BASE_API = 'https://joylink.club/jlcloud'; + // BASE_API = 'https://api.joylink.club/jlcloud'; BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.8.107:9000'; // 袁琪 // BASE_API = 'http://192.168.8.129:9000'; // 旭强 diff --git a/src/views/newMap/newDesignUser/mapmanage/create.vue b/src/views/newMap/newDesignUser/mapmanage/create.vue index 7564b7e6e..733d56af4 100644 --- a/src/views/newMap/newDesignUser/mapmanage/create.vue +++ b/src/views/newMap/newDesignUser/mapmanage/create.vue @@ -22,7 +22,7 @@ - +