mirror of
https://github.com/Kisechan/Mainpage.git
synced 2025-07-10 07:07:18 +00:00
优化友链配置,调整导航栏链接打开方式,增加 GitHub 日历清理逻辑,限制 RSS 文章数量
This commit is contained in:
@ -15,16 +15,19 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { useRouter } from 'vue-router';
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
// 打开外部链接
|
||||
const goToBlog = () => {
|
||||
window.open("https://blog.kisechan.space", "_blank");
|
||||
};
|
||||
|
||||
// 打开内部链接(新标签页)
|
||||
// 打开内部链接(当前页面)
|
||||
const openLink = (path) => {
|
||||
const fullUrl = "https://www.kisechan.space" + path; // 获取完整 URL
|
||||
if (window.location.href === fullUrl) return; // 防止重复点击
|
||||
window.open(fullUrl, "_blank");
|
||||
console.log("Navigating to:", path); // 调试信息
|
||||
router.push(path);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user