调整服务端路径
This commit is contained in:
parent
afef8f9e9f
commit
9c729e36f2
@ -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'
|
||||
|
||||
|
||||
|
2
.env.heb
2
.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'
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -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'); } // 图片超过大小的回调
|
||||
|
Loading…
Reference in New Issue
Block a user