From 210fddbc700d8835e669fb987e095227eda8baf5 Mon Sep 17 00:00:00 2001 From: lienbaoagora <66240717+lienbaoagora@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:49:15 +0800 Subject: [PATCH 1/6] Update index.tsx --- examples/web/src/pages/settings/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/web/src/pages/settings/index.tsx b/examples/web/src/pages/settings/index.tsx index 1484979..ca8770f 100644 --- a/examples/web/src/pages/settings/index.tsx +++ b/examples/web/src/pages/settings/index.tsx @@ -27,7 +27,7 @@ const Settings = () => { Toast.show({ content: "保存成功", }); - location.href = "/"; + location.href = location.origin + "/"; }; const onFinishFailed = (errorInfo: any) => { From 04f29f6ec38cfdc63ba06701e2aa501113c552d6 Mon Sep 17 00:00:00 2001 From: lienbaoagora <66240717+lienbaoagora@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:52:27 +0800 Subject: [PATCH 2/6] Update index.tsx --- examples/web/src/pages/settings/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/web/src/pages/settings/index.tsx b/examples/web/src/pages/settings/index.tsx index ca8770f..974430c 100644 --- a/examples/web/src/pages/settings/index.tsx +++ b/examples/web/src/pages/settings/index.tsx @@ -27,7 +27,7 @@ const Settings = () => { Toast.show({ content: "保存成功", }); - location.href = location.origin + "/"; + location.hash = "/"; }; const onFinishFailed = (errorInfo: any) => { From 83851dd8557626d0ac640257c8f67f8dcc71b39c Mon Sep 17 00:00:00 2001 From: lienbaoagora <66240717+lienbaoagora@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:56:43 +0800 Subject: [PATCH 3/6] Update useAuth.tsx --- examples/web/src/hooks/useAuth.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/web/src/hooks/useAuth.tsx b/examples/web/src/hooks/useAuth.tsx index 210247d..1a5b50d 100644 --- a/examples/web/src/hooks/useAuth.tsx +++ b/examples/web/src/hooks/useAuth.tsx @@ -70,7 +70,7 @@ export const AuthProvider = ({ children }: { children: React.ReactNode }) => { nodeRegion: res.data?.nodeRegion, nodeToken: res.data?.nodeToken, }); - location.href = "/#/"; + location.reload(); } }; From 5b041f37379c948e3d91f0e5acd2d7ee0e3c0b28 Mon Sep 17 00:00:00 2001 From: lienbaoagora <66240717+lienbaoagora@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:59:04 +0800 Subject: [PATCH 4/6] Update index.tsx --- examples/web/src/pages/settings/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/web/src/pages/settings/index.tsx b/examples/web/src/pages/settings/index.tsx index 974430c..b6c6423 100644 --- a/examples/web/src/pages/settings/index.tsx +++ b/examples/web/src/pages/settings/index.tsx @@ -27,7 +27,7 @@ const Settings = () => { Toast.show({ content: "保存成功", }); - location.hash = "/"; + location.reload(); }; const onFinishFailed = (errorInfo: any) => { From 922b11a2d713647d865ab8dcad7f51dce4160ddf Mon Sep 17 00:00:00 2001 From: lienbaoagora <66240717+lienbaoagora@users.noreply.github.com> Date: Mon, 28 Oct 2024 17:01:37 +0800 Subject: [PATCH 5/6] Update index.tsx --- examples/web/src/pages/settings/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/web/src/pages/settings/index.tsx b/examples/web/src/pages/settings/index.tsx index b6c6423..ab481f3 100644 --- a/examples/web/src/pages/settings/index.tsx +++ b/examples/web/src/pages/settings/index.tsx @@ -27,7 +27,7 @@ const Settings = () => { Toast.show({ content: "保存成功", }); - location.reload(); + history.back(); }; const onFinishFailed = (errorInfo: any) => { From 3e1aca79a1fd4900d1ab05b62a692ea9806bca14 Mon Sep 17 00:00:00 2001 From: lienbaoagora <66240717+lienbaoagora@users.noreply.github.com> Date: Mon, 28 Oct 2024 17:05:09 +0800 Subject: [PATCH 6/6] Update index.tsx --- examples/web/src/pages/settings/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/web/src/pages/settings/index.tsx b/examples/web/src/pages/settings/index.tsx index ab481f3..82138db 100644 --- a/examples/web/src/pages/settings/index.tsx +++ b/examples/web/src/pages/settings/index.tsx @@ -27,7 +27,7 @@ const Settings = () => { Toast.show({ content: "保存成功", }); - history.back(); + location.href = location.origin + location.pathname; }; const onFinishFailed = (errorInfo: any) => {