mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-15 07:03:48 +08:00
v2.0 更新vite3.2.3,速度非常快
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user