mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 10:29:20 +08:00
feat: 超管账户切换
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user