feat: 统一获取app-routes方法

This commit is contained in:
rd
2025-07-25 11:52:23 +08:00
parent 2169df7082
commit 9bc6ed44d5
3 changed files with 8 additions and 10 deletions

View File

@ -69,7 +69,6 @@ import { now } from '@vueuse/core';
import { trialProduct } from '@/api/all';
import { useRouter } from 'vue-router';
import CustomerServiceModal from '@/components/customer-service-modal.vue';
import { appRoutes } from '@/router/routes';
import { useSidebarStore } from '@/stores/modules/side-bar';
import { useEnterpriseStore } from '@/stores/modules/enterprise';
@ -119,7 +118,6 @@ const gotoModule = (menuId: number) => {
'1': 'DataEngineHotTranslation',
'2': 'RepositoryBrandMaterials',
};
console.log(routeMap[menuId]);
router.push({ name: routeMap[menuId] });
};
</script>