From 91359e29d3344a96c417c7babe8a4be56800fdc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Thu, 27 Apr 2023 11:51:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=95=E8=AF=89=E5=BB=BA=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sunVillage_info/list_complaint_add.vue | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/views/sunVillage_info/list_complaint_add.vue b/src/views/sunVillage_info/list_complaint_add.vue index 19180d0e..99362ec9 100644 --- a/src/views/sunVillage_info/list_complaint_add.vue +++ b/src/views/sunVillage_info/list_complaint_add.vue @@ -66,7 +66,7 @@ @delete="deleteFile1" /> - + { if (r1.code == 200){ - that.$notify({ type: 'success', message: '新增成功' }); - setTimeout(function(){ - history.back(-1); - },2000) + that.$notify({ type: 'success', message: '提交成功' }); + if(this.$route.query.type != 'code'){ + location.reload(); + }else{ + setTimeout(function(){ + history.back(-1); + },2000) + } } }) },