调整服务端路径

This commit is contained in:
fan 2020-12-29 16:13:32 +08:00
parent afef8f9e9f
commit 9c729e36f2
6 changed files with 7 additions and 7 deletions

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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'); } //