From 1973caec3f2461d3f6784527776f420b67ce0cc4 Mon Sep 17 00:00:00 2001 From: webfansplz Date: Wed, 20 Dec 2023 00:13:25 +0800 Subject: [PATCH] fix(client): force refresh iframe view when toggle --- packages/client/src/pages/custom-tab-view.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/client/src/pages/custom-tab-view.vue b/packages/client/src/pages/custom-tab-view.vue index 49af4f57..799abcc1 100644 --- a/packages/client/src/pages/custom-tab-view.vue +++ b/packages/client/src/pages/custom-tab-view.vue @@ -15,6 +15,14 @@ onMounted(() => { }, 2000) } }) + +const iframeViewVisible = ref(true) +watch(() => route.params.name, () => { + iframeViewVisible.value = false + setTimeout(() => { + iframeViewVisible.value = true + }, 100) +})