From f766ad22da771af6464c34747bb518437e7a7bac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Wed, 8 May 2024 09:02:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=9B=BE=E7=89=87=E5=9B=9E?= =?UTF-8?q?=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/course/course-add-or-update.vue | 11 ++++++++++- static/config/index.js | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/views/modules/course/course-add-or-update.vue b/src/views/modules/course/course-add-or-update.vue index 953092e..1e39c9c 100644 --- a/src/views/modules/course/course-add-or-update.vue +++ b/src/views/modules/course/course-add-or-update.vue @@ -326,6 +326,15 @@ export default { init(row) { console.log("11111", row); this.dataForm = row || {}; + if (row.image != "" && row.image != null) { + var img = { + name: "", + url: row.image + }; + var attr = []; + attr.push(img); + this.fileList = attr; + } // this.dataForm.id = row.id || 0 // this.dataForm.title = row.title || '' this.visible = true; @@ -352,7 +361,7 @@ export default { id: this.dataForm.id || undefined, title: this.dataForm.title, sort: this.dataForm.sort, - image:this.dataForm.image, + image: this.dataForm.image // 'authorId': this.dataForm.authorId.join(','), // 'description': this.dataForm.description, // 'title': this.dataForm.title, diff --git a/static/config/index.js b/static/config/index.js index 191ab6a..71ef68a 100644 --- a/static/config/index.js +++ b/static/config/index.js @@ -7,9 +7,9 @@ // api接口请求地址 // window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb';//张川川 // window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb'; - // window.SITE_CONFIG['baseUrl'] = 'https://testapi.nuttyreading.com'; // 线上测试环境11 + window.SITE_CONFIG['baseUrl'] = 'https://testapi.nuttyreading.com'; // 线上测试环境11 // window.SITE_CONFIG['baseUrl'] = 'https://api.nuttyreading.com'; // 线上正式环境 - window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.110:9200/pb'; + // window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.110:9200/pb'; // window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb'; // window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb';