From 602f8f4b73c8f370e5da37fdb0f6515ea3723162 Mon Sep 17 00:00:00 2001 From: Jiangchunfu Date: Mon, 23 Sep 2024 12:29:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=81=9A=E9=A2=98?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=8F=90=E4=BA=A4reload=E9=A1=B5=E9=9D=A2=20?= =?UTF-8?q?(#419)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: jiangchunfu Co-authored-by: sudoooooo --- web/src/render/pages/IndexPage.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/render/pages/IndexPage.vue b/web/src/render/pages/IndexPage.vue index 3b624ff5..0d2c5df6 100644 --- a/web/src/render/pages/IndexPage.vue +++ b/web/src/render/pages/IndexPage.vue @@ -14,8 +14,8 @@ const surveyStore = useSurveyStore() watch( () => route.query.t, - () => { - location.reload() + (t) => { + if (t) location.reload() } ) @@ -62,6 +62,7 @@ const loadData = (res: any, surveyPath: string) => { throw new Error(res.errmsg) } } + const getDetail = async (surveyPath: string) => { const alert = useCommandComponent(AlertDialog)