Files
Mainpage/src/components/NavBar.vue

21 lines
428 B
Vue
Raw Normal View History

2025-03-03 19:59:03 +08:00
<template>
<el-menu mode="horizontal" router>
2025-03-04 11:39:37 +08:00
<el-menu-item index="/">首页</el-menu-item>
<el-menu-item @click="goToBlog">博客</el-menu-item>
<el-menu-item index="/about">关于</el-menu-item>
</el-menu>
</template>
2025-03-04 11:39:37 +08:00
<script setup>
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;
}
</style>