From 727d05f861ac25f251f33d7fd4f5c1b92c174c41 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 1 Mar 2022 15:19:25 +0800 Subject: [PATCH] BUG 27822 --- project/xiushan/apps/AppXsBanner/AppXsBanner.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/project/xiushan/apps/AppXsBanner/AppXsBanner.vue b/project/xiushan/apps/AppXsBanner/AppXsBanner.vue index fc5c315e..9db36d05 100644 --- a/project/xiushan/apps/AppXsBanner/AppXsBanner.vue +++ b/project/xiushan/apps/AppXsBanner/AppXsBanner.vue @@ -215,18 +215,16 @@ export default { // 确定新增 addConfirm() { // console.log('确定') - this.instance - .post(`/appbanner/addOrUpdate`, { - imgUrl: this.dialogInfo.imgUrl[0].url, + this.instance.post(`/appbanner/addOrUpdate`, { + imgUrl: this.dialogInfo.imgUrl?.[0]?.url, linkUrl: this.dialogInfo.linkUrl, status: this.status, title: this.dialogInfo.title, showIndex: this.dialogInfo.showIndex, id: this.dialogInfo.id, - }) - .then(res => { + }).then(res => { if (res?.code == 0) { - this.$message.success('新增成功') + this.$message.success('提交成功') this.visible = false this.getList() }