feat(projects): Add route meta parameter:fixedQuery

This commit is contained in:
Azir-11
2024-03-10 05:19:21 +08:00
parent 7a2f54be8b
commit 874aaca5bb
3 changed files with 22 additions and 2 deletions

View File

@ -57,6 +57,13 @@ function updateExpandedKeys() {
}
function handleClickMenu(key: RouteKey) {
const meta = routeStore.getSelectedMenuMetaByKey(key);
if (meta?.fixedQuery) {
routerPushByKey(key, {
query: meta.fixedQuery
});
return;
}
routerPushByKey(key);
}