From f1f25d4ecbc7ca231fe7fdb464e1c02eaaf763a3 Mon Sep 17 00:00:00 2001 From: linhaojun Date: Thu, 22 Sep 2022 21:48:38 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BF=AE=E6=94=B9=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E8=AF=B4=E8=AF=B4=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aurora-vue/aurora-admin/src/views/talk/Talk.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/aurora-vue/aurora-admin/src/views/talk/Talk.vue b/aurora-vue/aurora-admin/src/views/talk/Talk.vue index 9c2b2e7..300a8fb 100644 --- a/aurora-vue/aurora-admin/src/views/talk/Talk.vue +++ b/aurora-vue/aurora-admin/src/views/talk/Talk.vue @@ -84,7 +84,7 @@ export default { content: '', isTop: 0, status: 1, - images: null + images: '' }, statuses: [ { status: 1, desc: '公开' }, @@ -131,13 +131,14 @@ export default { img.push(item.url) }) this.talk.images = JSON.stringify(img) - }else{ - this.talk.images = null + } else { + this.talk.images = '' } this.axios.post('/api/admin/talks', this.talk).then(({ data }) => { if (data.flag) { this.$refs.editor.clear() this.uploads = [] + this.$router.push({ path: '/talk-list' }) this.$notify.success({ title: '成功', message: data.message @@ -166,7 +167,7 @@ export default { + \ No newline at end of file