Skip to content

Commit

Permalink
Update headers.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
everything411 authored Oct 26, 2024
1 parent ae06a15 commit 8d397aa
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions src/components/headers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function jumpTo(url){
</n-gi>
<!--news-->
<n-gi offset="0" span="0 s:5 l:3">
<n-button text >
<n-button text @click="jumpTo('https://status.bitnp.net')">
<n-icon :size="propstyle.icons" >
<News16Regular/>
</n-icon>
Expand All @@ -55,7 +55,7 @@ function jumpTo(url){
</n-gi>
<!--space-->
<n-gi offset="0" span="0 s:5 l:3">
<n-dropdown trigger="hover" size="large" :options="options1">
<n-dropdown trigger="hover" size="large" :options="options1" @select="handleSelect">
<n-button text >
<n-icon :size="propstyle.icons" >
<CodepenOutlined/>
Expand Down Expand Up @@ -174,16 +174,20 @@ export default defineComponent({
},
options1:[
{
label: '近期活动',
label: '组织部芝士虾',
key: 'activities',
icon:renderIcon(CalendarLtr16Regular)
},
{
label: "NP知识库",
label: "BITNP Blog",
key: 'blogs',
icon:renderIcon(DnsServices)
},
{
label: "BITNP知识库",
key: 'wiki',
icon:renderIcon(DnsServices)
},
],
options2:[
{
Expand All @@ -202,18 +206,7 @@ export default defineComponent({
icon:renderIcon(DevicesPc)
},
],
options3:[
{
label:"关于我们",
key:"Aboutus",
icon:renderIcon(PlanetOutline)
},
{
label: "加入我们",
key: "joinus",
icon:renderIcon(MdContacts)
}
],
// 移动端下拉菜单,因此和上方会有重复
optionsM:[
{
label:'News',
Expand All @@ -226,15 +219,20 @@ export default defineComponent({
icon:renderIcon(CodepenOutlined),
children:[
{
label: '近期活动',
label: '组织部芝士虾',
key: 'activities',
icon:renderIcon(CalendarLtr16Regular)
},
{
label: "NP知识库",
label: "BITNP Blog",
key: 'blogs',
icon:renderIcon(DnsServices)
},
{
label: "BITNP知识库",
key: 'wiki',
icon:renderIcon(DnsServices)
},
]
},
{
Expand Down Expand Up @@ -278,8 +276,9 @@ export default defineComponent({
const map ={
news:'https://status.bitnp.net',
github:'https://github.com/BITNP',
blogs:'https://cheesy-shrimp.bitnp.net',
activities:'https://www.bitnp.net',
activities:'https://cheesy-shrimp.bitnp.net',
blogs:'https://blog.bitnp.net',
wiki:'https://wiki.bitnp.net',
address:'common-links',
PCcommands:'https://docs.qq.com/aio/p/scmzu718dzus0zl',
about:'about-us'
Expand Down

0 comments on commit 8d397aa

Please sign in to comment.