让顶部导航栏真正可用

添加顶部导航栏内的链接
This commit is contained in:
2026-04-22 23:31:45 +08:00
parent 285a92d9cb
commit df17a73c31
2 changed files with 24 additions and 3 deletions

View File

@@ -33,6 +33,7 @@ declare module 'vue' {
NMenu: typeof import('naive-ui')['NMenu'] NMenu: typeof import('naive-ui')['NMenu']
NMessageProvider: typeof import('naive-ui')['NMessageProvider'] NMessageProvider: typeof import('naive-ui')['NMessageProvider']
NP: typeof import('naive-ui')['NP'] NP: typeof import('naive-ui')['NP']
NPopover: typeof import('naive-ui')['NPopover']
NSelect: typeof import('naive-ui')['NSelect'] NSelect: typeof import('naive-ui')['NSelect']
NSwitch: typeof import('naive-ui')['NSwitch'] NSwitch: typeof import('naive-ui')['NSwitch']
NTag: typeof import('naive-ui')['NTag'] NTag: typeof import('naive-ui')['NTag']
@@ -65,6 +66,7 @@ declare global {
const NMenu: typeof import('naive-ui')['NMenu'] const NMenu: typeof import('naive-ui')['NMenu']
const NMessageProvider: typeof import('naive-ui')['NMessageProvider'] const NMessageProvider: typeof import('naive-ui')['NMessageProvider']
const NP: typeof import('naive-ui')['NP'] const NP: typeof import('naive-ui')['NP']
const NPopover: typeof import('naive-ui')['NPopover']
const NSelect: typeof import('naive-ui')['NSelect'] const NSelect: typeof import('naive-ui')['NSelect']
const NSwitch: typeof import('naive-ui')['NSwitch'] const NSwitch: typeof import('naive-ui')['NSwitch']
const NTag: typeof import('naive-ui')['NTag'] const NTag: typeof import('naive-ui')['NTag']

View File

@@ -5,9 +5,28 @@
<div id="nav-title"> <div id="nav-title">
<n-h3 class="no-margin-bottom">NJUPT Suan API</n-h3> <n-h3 class="no-margin-bottom">NJUPT Suan API</n-h3>
</div> </div>
<a href="https://suan.mangofanfan.cn/" target="_blank">
<n-button secondary type="primary">概览</n-button> <n-button secondary type="primary">概览</n-button>
</a>
<n-popover trigger="hover">
<template #trigger>
<n-button secondary type="info">源码</n-button>
</template>
<n-p class="no-margin-bottom"
>NJUPT Suan API 的代码开源在以下两个地方后面的那个可能更快</n-p
>
<n-flex justify="center">
<a href="https://github.com/mangofanfan/NJUPT-Suan-API" target="_blank">
<n-button secondary type="info">GitHub</n-button> <n-button secondary type="info">GitHub</n-button>
</a>
<a href="https://gitea.mangofanfan.cn/SuanDev/NJUPT-Suan-API" target="_blank">
<n-button secondary type="success">Mango Gitea</n-button>
</a>
</n-flex>
</n-popover>
<a href="https://mangofanfan.cn/" target="_blank">
<n-button secondary type="error">芒果</n-button> <n-button secondary type="error">芒果</n-button>
</a>
</div> </div>
</template> </template>