From ebc51fe3dfa73ebf77b3f9728e8a8af1e7bc6bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Tue, 11 Jun 2024 11:20:55 +0800 Subject: [PATCH] =?UTF-8?q?task=20=E5=85=A8=E5=B1=80API=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/global.js | 2 -- .../userInformation/companyInformation.vue | 14 +++++++------- src/views/user/supply/supplyAdd.vue | 2 +- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/utils/global.js b/src/utils/global.js index e93ad963..7ec1613b 100644 --- a/src/utils/global.js +++ b/src/utils/global.js @@ -1,10 +1,8 @@ const deptId = 100 ; -const severApi = 'http://192.168.31.107:8080'; export default { deptId,//区县ID - severApi,//全局API } export const REGION = { YI_LONG_XIAN: '仪陇', diff --git a/src/views/user/accountSetting/userInformation/companyInformation.vue b/src/views/user/accountSetting/userInformation/companyInformation.vue index a1a0fbe8..ef50e546 100644 --- a/src/views/user/accountSetting/userInformation/companyInformation.vue +++ b/src/views/user/accountSetting/userInformation/companyInformation.vue @@ -365,13 +365,13 @@ export default { this.userForm.id = response.data.id; this.form.tableId = response.data.id; - showUserImg(response.data.id).then(responseSecond => { - console.log(responseSecond) - this.form.files = responseSecond.data - for (var i = 0 ; i < responseSecond.data.length ; i++){ - this.fileList.push({url:this.global.severApi+responseSecond.data[i].fileUrl,id:responseSecond.data[i].id}) - } - }); + // showUserImg(response.data.id).then(responseSecond => { + // console.log(responseSecond) + // this.form.files = responseSecond.data + // for (var i = 0 ; i < responseSecond.data.length ; i++){ + // this.fileList.push({url:this.global.severApi+responseSecond.data[i].fileUrl,id:responseSecond.data[i].id}) + // } + // }); }); }); }, diff --git a/src/views/user/supply/supplyAdd.vue b/src/views/user/supply/supplyAdd.vue index 0ea482c9..bca14ed6 100644 --- a/src/views/user/supply/supplyAdd.vue +++ b/src/views/user/supply/supplyAdd.vue @@ -138,7 +138,7 @@ export default { }); showImg(response.data.id).then(responseSecond => { for (var i = 0 ; i < responseSecond.data.length ; i++){ - this.fileList.push({url:this.global.severApi+responseSecond.data[i].fileUrl,id:responseSecond.data[i].id}) + this.fileList.push({url:'/api'+responseSecond.data[i].fileUrl,id:responseSecond.data[i].id}) } }); });