From 51cc54d6a4ec7463be10afaaca85f10e219ec2f6 Mon Sep 17 00:00:00 2001
From: bibi <541660090@qq.com>
Date: Mon, 7 Mar 2022 09:27:26 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=BD=AE=E6=92=AD=E5=9B=BEbu?=
=?UTF-8?q?g?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 18 ++++++++++++++++--
src/views/Operation/clientSet/index.vue | 10 ++++++----
src/views/Shop/SwiperManage/index.vue | 2 ++
3 files changed, 24 insertions(+), 6 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index a9f9fed..cc4e891 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -9,7 +9,7 @@
-
+
@@ -18,11 +18,25 @@
import zhCN from "ant-design-vue/lib/locale-provider/zh_CN";
export default {
name: 'App',
+ provide () {
+ return {
+ reload: this.reload
+ }
+ },
data() {
return {
- locale: zhCN
+ locale: zhCN,
+ isRouterAlive: true
};
},
+ methods: {
+ reload () {
+ this.isRouterAlive = false
+ this.$nextTick(() => {
+ this.isRouterAlive = true
+ })
+ }
+ }
}
diff --git a/src/views/Operation/clientSet/index.vue b/src/views/Operation/clientSet/index.vue
index d7fc0c0..d0ef563 100644
--- a/src/views/Operation/clientSet/index.vue
+++ b/src/views/Operation/clientSet/index.vue
@@ -14,16 +14,16 @@
>
×
-
+
- 暂无图片
+ 暂无图片
-
+
{{ item.customizeUrl }}
@@ -36,7 +36,7 @@
-
+
修改设置
@@ -135,6 +135,7 @@ export default {
components: {
chooseTable,
},
+ inject: ["reload"],
data() {
return {
table: {
@@ -172,6 +173,7 @@ export default {
this.$message.success(res.msg);
this.newSwiperClose();
this.getData();
+ this.reload();
} else {
this.$message.error(res.msg);
}
diff --git a/src/views/Shop/SwiperManage/index.vue b/src/views/Shop/SwiperManage/index.vue
index 2505387..c734ac1 100644
--- a/src/views/Shop/SwiperManage/index.vue
+++ b/src/views/Shop/SwiperManage/index.vue
@@ -81,6 +81,7 @@ export default {
},
data() {
return {
+ inject: ["reload"],
table: {
show: false,
},
@@ -161,6 +162,7 @@ export default {
if (res.code === 200) {
this.$message.success(res.msg);
this.getData();
+ this.reload();
this.newSwiperClose();
} else {
this.$message.error(res.msg);