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(); } }; diff --git a/examples/web/src/pages/settings/index.tsx b/examples/web/src/pages/settings/index.tsx index 1484979..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: "保存成功", }); - location.href = "/"; + location.href = location.origin + location.pathname; }; const onFinishFailed = (errorInfo: any) => {