feat: 初始化素材中心页面路由结构
This commit is contained in:
@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user