mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): Add route meta parameter:fixedQuery
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user