fix(bug): fix router

This commit is contained in:
zhangheng
2026-03-27 16:18:44 +08:00
parent 5cbdd259ab
commit 336adc766e
7 changed files with 153 additions and 23 deletions

View File

@@ -263,8 +263,13 @@ export const useBackUrlStore = create(
(set) => ({
backUrl: null,
backTitle: null,
setBackProps: (url: string, title?: string) =>
set({ backUrl: url, backTitle: title || null }),
basePath: "",
setBackProps: (url: string, title?: string, basePath?: string) =>
set({
backUrl: url,
backTitle: title || null,
basePath: basePath || "",
}),
}),
{
name: "back_url",