fix(components): 修复了布局的导入错误

This commit is contained in:
‘chen.home’ 2022-08-11 01:18:30 +08:00
parent a56b084426
commit b5c7d0a547

View File

@ -52,6 +52,7 @@ import { h, ref } from 'vue';
import { useRouter } from 'vue-router';
import { Icon } from '@iconify/vue';
import Logo from '../components/logo.vue';
import { computed } from 'vue';
const router = useRouter();
const collapsed = ref(false);
@ -117,7 +118,7 @@ const menuOptions: MenuOption[] = [
],
},
];
import { computed } from 'vue';
const routes = computed(() => {
return router.currentRoute.value.matched.filter((item) => {
return item.meta.title;