feat: 超管账户切换

This commit is contained in:
ah--desktop
2025-10-27 23:30:28 +08:00
parent 8914b175d7
commit 25977c568f
27 changed files with 944 additions and 76 deletions
@@ -25,14 +25,12 @@ async function generateAccess(options: GenerateMenuAndRoutesOptions) {
return await generateAccessible(preferences.app.accessMode, {
...options,
fetchMenuListAsync: async () => {
console.log('🚀 开始获取用户菜单路由...');
message.loading({
content: `${$t('common.loadingMenu')}...`,
duration: 1.5,
});
try {
const routes = await getUserMenuApi();
console.log('✅ 获取用户菜单路由成功:', routes);
return routes;
} catch (error) {
console.error('❌ 获取用户菜单路由失败:', error);