2025-03-03 19:59:03 +08:00
|
|
|
<template>
|
2025-03-05 08:45:31 +08:00
|
|
|
<el-menu mode="horizontal" router>
|
2025-03-04 11:39:37 +08:00
|
|
|
<el-menu-item index="/">首页</el-menu-item>
|
2025-03-05 08:45:31 +08:00
|
|
|
<el-menu-item @click="goToBlog">博客</el-menu-item>
|
2025-03-04 11:11:24 +08:00
|
|
|
<el-menu-item index="/about">关于</el-menu-item>
|
|
|
|
</el-menu>
|
|
|
|
</template>
|
|
|
|
|
2025-03-04 11:39:37 +08:00
|
|
|
<script setup>
|
2025-03-05 08:45:31 +08:00
|
|
|
const goToBlog = () => {
|
|
|
|
window.open("https://blog.kisechan.space", "_blank");
|
|
|
|
};
|
2025-03-04 11:39:37 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.el-menu {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2025-03-05 08:45:31 +08:00
|
|
|
</style>
|