feat: add base path to resources (#17655)
Co-authored-by: fhliu4 <fhliu4@iflytek.com>
This commit is contained in:
parent
12de1d175c
commit
7161d7ad96
30 changed files with 146 additions and 38 deletions
|
|
@ -24,7 +24,8 @@ export const useTabSearchParams = ({
|
|||
searchParamName = 'category',
|
||||
disableSearchParams = false,
|
||||
}: UseTabSearchParamsOptions) => {
|
||||
const pathName = usePathname()
|
||||
const pathnameFromHook = usePathname()
|
||||
const pathName = window?.location?.pathname || pathnameFromHook
|
||||
const searchParams = useSearchParams()
|
||||
const [activeTab, setTab] = useState<string>(
|
||||
!disableSearchParams
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue