diff --git a/src/mods/conv/AppPhotoAlbum/AppPhotoAlbum.vue b/src/mods/conv/AppPhotoAlbum/AppPhotoAlbum.vue index c67b198..dd36158 100644 --- a/src/mods/conv/AppPhotoAlbum/AppPhotoAlbum.vue +++ b/src/mods/conv/AppPhotoAlbum/AppPhotoAlbum.vue @@ -149,7 +149,7 @@ export default { uploadFile(img, total) { uni.uploadFile({ - url: this.$instance.config.baseURL + '/admin/file/add', + url: this.$instance.defaults.baseURL + '/admin/file/add', filePath: img, name: 'file', header: { diff --git a/src/mods/extra/AppMine/userInfo.vue b/src/mods/extra/AppMine/userInfo.vue index 6226418..0b2f064 100644 --- a/src/mods/extra/AppMine/userInfo.vue +++ b/src/mods/extra/AppMine/userInfo.vue @@ -60,7 +60,7 @@ export default { upLoad(img) { return new Promise((resolve, reject) => { uni.uploadFile({ - url: `${this.$instance.baseURL}/admin/file/add`, + url: `${this.$instance.defaults.baseURL}/admin/file/add`, filePath: img, name: 'file', header: { diff --git a/src/mods/party/AppThreeSessions/threeSessionsContent.vue b/src/mods/party/AppThreeSessions/threeSessionsContent.vue index 91afd70..e41f608 100644 --- a/src/mods/party/AppThreeSessions/threeSessionsContent.vue +++ b/src/mods/party/AppThreeSessions/threeSessionsContent.vue @@ -159,7 +159,7 @@ export default { // fail Function 否 接口调用失败的回调函数 // complete Function 否 接口调用结束的回调函数(调用成功、失败都会执行) uni.uploadFile({ - url: this.$instance.baseURL + "/admin/file/add", + url: this.$instance.defaults.baseURL + "/admin/file/add", filePath: that.tempFilePaths[i], name: "file", // formData:params, diff --git a/src/mods/work/AppServiceOnlineNew/form.vue b/src/mods/work/AppServiceOnlineNew/form.vue index 9cd8aad..c6b2a9c 100644 --- a/src/mods/work/AppServiceOnlineNew/form.vue +++ b/src/mods/work/AppServiceOnlineNew/form.vue @@ -453,7 +453,7 @@ export default { const path = res.tempFilePaths[0] // this.$loading() uni.uploadFile({ - url: this.$instance.config.baseURL + '/admin/file/add2', + url: this.$instance.defaults.baseURL + '/admin/file/add2', filePath: path, name: 'file', header: { diff --git a/src/project/huizhili/AppEnteringCommunity/AppPhotoAlbum.vue b/src/project/huizhili/AppEnteringCommunity/AppPhotoAlbum.vue index 1c24767..4a22eac 100644 --- a/src/project/huizhili/AppEnteringCommunity/AppPhotoAlbum.vue +++ b/src/project/huizhili/AppEnteringCommunity/AppPhotoAlbum.vue @@ -149,7 +149,7 @@ export default { uploadFile(img, total) { uni.uploadFile({ - url: this.$instance.config.baseURL + '/admin/file/add', + url: this.$instance.defaults.baseURL + '/admin/file/add', filePath: img, name: 'file', header: { diff --git a/src/project/huizhili/AppMine/userInfo.vue b/src/project/huizhili/AppMine/userInfo.vue index 6226418..0b2f064 100644 --- a/src/project/huizhili/AppMine/userInfo.vue +++ b/src/project/huizhili/AppMine/userInfo.vue @@ -60,7 +60,7 @@ export default { upLoad(img) { return new Promise((resolve, reject) => { uni.uploadFile({ - url: `${this.$instance.baseURL}/admin/file/add`, + url: `${this.$instance.defaults.baseURL}/admin/file/add`, filePath: img, name: 'file', header: { diff --git a/src/project/sanjianxi/AppMine/userInfo.vue b/src/project/sanjianxi/AppMine/userInfo.vue index 6226418..0b2f064 100644 --- a/src/project/sanjianxi/AppMine/userInfo.vue +++ b/src/project/sanjianxi/AppMine/userInfo.vue @@ -60,7 +60,7 @@ export default { upLoad(img) { return new Promise((resolve, reject) => { uni.uploadFile({ - url: `${this.$instance.baseURL}/admin/file/add`, + url: `${this.$instance.defaults.baseURL}/admin/file/add`, filePath: img, name: 'file', header: { diff --git a/src/project/shandong10086/AppMine/userInfo.vue b/src/project/shandong10086/AppMine/userInfo.vue index 6226418..0b2f064 100644 --- a/src/project/shandong10086/AppMine/userInfo.vue +++ b/src/project/shandong10086/AppMine/userInfo.vue @@ -60,7 +60,7 @@ export default { upLoad(img) { return new Promise((resolve, reject) => { uni.uploadFile({ - url: `${this.$instance.baseURL}/admin/file/add`, + url: `${this.$instance.defaults.baseURL}/admin/file/add`, filePath: img, name: 'file', header: {