mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-25 16:16:20 +08:00
refactor(adapter): separate form and component adapters so that components adapt to components other than the form (#4628)
* refactor: global components can be customized * refactor: remove use Toast and reconstruct the form adapter
This commit is contained in:
@@ -523,7 +523,8 @@ function isAffixTab(tab: TabDefinition) {
|
||||
* @param tab
|
||||
*/
|
||||
function isTabShown(tab: TabDefinition) {
|
||||
return !tab.meta.hideInTab;
|
||||
const matched = tab?.matched ?? [];
|
||||
return !tab.meta.hideInTab && matched.every((item) => !item.meta.hideInTab);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -37,7 +37,6 @@ export function resetAllStores() {
|
||||
return;
|
||||
}
|
||||
const allStores = (pinia as any)._s;
|
||||
|
||||
for (const [_key, store] of allStores) {
|
||||
store.$reset();
|
||||
}
|
||||
|
Reference in New Issue
Block a user