升级到vite3,速度非常快

This commit is contained in:
zhuoda
2022-11-13 21:23:31 +08:00
parent c919f17c1e
commit 118e2248cc
9 changed files with 83 additions and 82 deletions
@@ -59,8 +59,8 @@
const openKeys = ref([]);
// 页面跳转
function turnToPage(route) {
router.push({ name: route.menuId.toString() });
function turnToPage(menu) {
router.push({ path: menu.path });
}
/**
@@ -39,7 +39,7 @@
});
const emits = defineEmits(['turnToPage']);
const turnToPage = (route) => {
emits('turnToPage', route);
const turnToPage = (menu) => {
emits('turnToPage', menu);
};
</script>