diff --git a/.env.development b/.env.development index 9f3da3f19..b387ff05b 100644 --- a/.env.development +++ b/.env.development @@ -7,7 +7,7 @@ NODE_ENV = 'development' # 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://oss.joylink.club/oss/joylink' -VUE_APP_UPLOAD_API = 'https://upload.joylink.club/jlfile' +VUE_APP_UPLOAD_API = 'https://upload.joylink.club' # VUE_APP_VOICE_API = 'http://192.168.8.110:9008' diff --git a/.env.heb b/.env.heb index fb5faa637..6f94e6d38 100644 --- a/.env.heb +++ b/.env.heb @@ -5,4 +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://upload.joylink.club/jlfile' +VUE_APP_UPLOAD_API = 'https://upload.joylink.club' diff --git a/.env.ntyl b/.env.ntyl index 55cc20af3..1ba6de5da 100644 --- a/.env.ntyl +++ b/.env.ntyl @@ -5,4 +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://upload.joylink.club/jlfile' +VUE_APP_UPLOAD_API = 'https://upload.joylink.club' diff --git a/.env.production b/.env.production index c71cb9ae4..71363ca9f 100644 --- a/.env.production +++ b/.env.production @@ -4,4 +4,4 @@ NODE_ENV = 'production' # base api VUE_APP_BASE_API = 'https://api.joylink.club/jlcloud' VUE_APP_VOICE_API = 'https://oss.joylink.club/oss/joylink' -VUE_APP_UPLOAD_API = 'https://upload.joylink.club/jlfile' +VUE_APP_UPLOAD_API = 'https://upload.joylink.club' diff --git a/.env.staging b/.env.staging index fca7c4cd8..d1042b068 100644 --- a/.env.staging +++ b/.env.staging @@ -4,4 +4,4 @@ NODE_ENV = 'test' # base api VUE_APP_BASE_API = 'https://test.joylink.club/jlcloud' VUE_APP_VOICE_API = 'https://oss.joylink.club/oss/joylink' -VUE_APP_UPLOAD_API = 'https://upload.joylink.club/jlfile' +VUE_APP_UPLOAD_API = 'https://upload.joylink.club' diff --git a/src/components/QuillEditor/index.vue b/src/components/QuillEditor/index.vue index e3efd670b..17795b027 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: `${process.env.VUE_APP_VOICE_API}/api/upload/PICTURE?appId=00001&appSecret=joylink00001`, + action: `${process.env.VUE_APP_UPLOAD_API}/api/upload/PICTURE?appId=00001&appSecret=joylink00001`, response: (res) => { - return `${process.env.VUE_APP_VOICE_API}/oss/joylink${res.data}`; + return `${process.env.VUE_APP_VOICE_API}${res.data}`; }, error: () => { that.$message.error('图片上传失败,请检查网络状态'); }, sizeError: () => { that.$message.error('图片上传失败,图片大小限制3MB'); } // 图片超过大小的回调