feat(shared-ui): 对齐官方控件并增加组件预览
This commit is contained in:
@@ -24,6 +24,7 @@ import {
|
||||
function useActiveRoutePath() {
|
||||
const matchRoute = useMatchRoute()
|
||||
if (matchRoute({ to: "/selection", fuzzy: true })) return "/selection"
|
||||
if (matchRoute({ to: "/components", fuzzy: true })) return "/components"
|
||||
if (matchRoute({ to: "/", fuzzy: false })) return "/"
|
||||
return "/"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user