feat: 初始化素材中心页面路由结构

This commit is contained in:
rd
2025-08-22 11:48:41 +08:00
parent f53b697df1
commit 0d5cb7ba38
19 changed files with 389 additions and 25 deletions

View File

@ -83,6 +83,7 @@ import router from '@/router';
import { useEnterpriseStore } from '@/stores/modules/enterprise';
import { useSidebarStore } from '@/stores/modules/side-bar';
import { useUserStore } from '@/stores';
import { handleUserHome } from '@/utils/user';
import ExitAccountModal from '../exit-account-modal';
import DownloadCenterModal from '../task-center-modal';
@ -134,7 +135,7 @@ const setUnread = () => {
}
};
const handleAgentClick = () => {
router.push({ name: props.isAgentRoute ? 'Home' : 'AgentIndex' });
props.isAgentRoute ? handleUserHome() : router.push({ name: 'AgentIndex' });
};
</script>