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);