diff --git a/pages/index/addCoach.vue b/pages/index/addCoach.vue index 0df12f6..3255b2f 100644 --- a/pages/index/addCoach.vue +++ b/pages/index/addCoach.vue @@ -86,7 +86,7 @@ if (res.code == 0) { this.formData = res.data this.fileList1 = [{ - url: this.imageUrl + res.data.photo + url: this.formData.photo }] } }) @@ -109,11 +109,11 @@ lists.map((item) => { this[`fileList${event.name}`].push({ ...item, - }) }) for (let i = 0; i < lists.length; i++) { const result = await this.uploadFilePromise(lists[i].url) + console.log(result,'reseult') let item = this[`fileList${event.name}`][fileListLen] this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, { status: 'success', @@ -126,10 +126,10 @@ uploadFilePromise(e) { console.log(e); upload({ - url: '/common/upload', + url: '/infra/file/upload', filePath: e, }).then((res) => { - this.formData.photo = res.fileName + this.formData.photo = res.data }) }, submit() { diff --git a/pages/index/courseManage.vue b/pages/index/courseManage.vue index 54a1871..c7ed38d 100644 --- a/pages/index/courseManage.vue +++ b/pages/index/courseManage.vue @@ -7,7 +7,7 @@ - + 成人班