From b82c1ebc18ef820375c4a828004bf7470eb07a79 Mon Sep 17 00:00:00 2001 From: long <515897141@qq.com> Date: 星期二, 20 四月 2021 16:29:54 +0800 Subject: [PATCH] 优化新增reglist、编辑getlist --- src/pages/demo/index.vue | 2 +- src/pages/system/admin.vue | 2 +- src/pages/demo/list.vue | 2 +- src/pages/system/banner.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/demo/index.vue b/src/pages/demo/index.vue index c7ff98f..b8d386c 100644 --- a/src/pages/demo/index.vue +++ b/src/pages/demo/index.vue @@ -296,7 +296,7 @@ }, () => { this.$messageSuc('淇濆瓨鎴愬姛') this.hideDialog() - this.reGetList() + isAdd ? this.reGetList() : this.getList() }) } } diff --git a/src/pages/demo/list.vue b/src/pages/demo/list.vue index b464184..5da8489 100644 --- a/src/pages/demo/list.vue +++ b/src/pages/demo/list.vue @@ -310,7 +310,7 @@ }, () => { this.$messageSuc('淇濆瓨鎴愬姛') this.hideDialog() - this.reGetList() + isAdd ? this.reGetList() : this.getList() }) } } diff --git a/src/pages/system/admin.vue b/src/pages/system/admin.vue index 2f7b289..af4f3b4 100644 --- a/src/pages/system/admin.vue +++ b/src/pages/system/admin.vue @@ -397,7 +397,7 @@ }, () => { this.$messageSuc('淇濆瓨鎴愬姛') this.hideAdminDialog() - this.getList() + isAdd ? this.reGetList() : this.getList() }) } }) diff --git a/src/pages/system/banner.vue b/src/pages/system/banner.vue index 202be7f..8fd46ed 100644 --- a/src/pages/system/banner.vue +++ b/src/pages/system/banner.vue @@ -329,7 +329,7 @@ }, inf => { this.$messageSuc('淇濆瓨鎴愬姛') this.hideDialog() - this.getList() + type === 'add' ? this.reGetList() : this.getList() }) } } -- Gitblit v1.8.0