fix: fix a series of known problems,fixed #54

This commit is contained in:
vince
2024-07-18 21:59:18 +08:00
parent 01e95e029f
commit 276ef2ebc3
36 changed files with 314 additions and 293 deletions

View File

@@ -20,10 +20,6 @@ const emit = defineEmits<{
const route = useRoute();
function handleSelect(menu: MenuRecordRaw) {
emit('select', menu);
}
onBeforeMount(() => {
const menu = findMenuByPath(props.menus || [], route.path);
if (menu) {
@@ -43,6 +39,6 @@ onBeforeMount(() => {
:rounded="rounded"
:theme="theme"
@enter="(menu) => emit('enter', menu)"
@select="handleSelect"
@select="(menu) => emit('select', menu)"
/>
</template>