fix(bug): fix router

This commit is contained in:
zhangheng
2026-03-27 15:13:41 +08:00
parent 764d0a726f
commit 72f1610fc3
7 changed files with 35 additions and 30 deletions

View File

@@ -1,8 +1,8 @@
import { ALL_CODE } from "../utils/constants"
import dayjs from "dayjs"
import { create } from "zustand"
import { persist } from "zustand/middleware"
import { storage } from "../store"
import dayjs from "dayjs"
import { ALL_CODE } from "../utils/constants"
const initUserInfo = {
user_id: null,
@@ -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",