From f99b3327f6cdc27fd6e22047d17553855c21f39d Mon Sep 17 00:00:00 2001 From: PQZ Date: Wed, 28 Aug 2024 18:31:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/addCoach.vue | 8 ++++---- pages/index/courseManage.vue | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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 @@ - + 成人班