Skip to content

Commit 0e4ab4f

Browse files
perf: 导航栏增加用户手册、项目地址、论坛求助入口(#83) (#138)
1 parent 3dc9b16 commit 0e4ab4f

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

ui/src/layout/components/top-bar/index.vue

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
·
12
<template>
23
<div class="top-bar-container border-b flex-between">
34
<div class="flex-center h-full">
@@ -9,7 +10,31 @@
910
</div>
1011
<TopMenu></TopMenu>
1112
</div>
12-
<div class="avatar">
13+
<div class="flex-center avatar">
14+
<el-tooltip effect="dark" content="项目地址" placement="top">
15+
<AppIcon
16+
iconName="app-github"
17+
class="cursor mr-16 ml-8"
18+
style="font-size: 24px"
19+
@click="toUrl('https://github.com/1Panel-dev/MaxKB')"
20+
></AppIcon>
21+
</el-tooltip>
22+
<el-tooltip effect="dark" content="用户手册" placement="top">
23+
<AppIcon
24+
iconName="app-reading"
25+
class="cursor mr-16 ml-8"
26+
style="font-size: 24px"
27+
@click="toUrl('https://github.com/1Panel-dev/MaxKB/wiki')"
28+
></AppIcon>
29+
</el-tooltip>
30+
<el-tooltip effect="dark" content="论坛求助" placement="top">
31+
<AppIcon
32+
iconName="app-help"
33+
class="cursor mr-16 ml-8"
34+
style="font-size: 24px"
35+
@click="toUrl('https://bbs.fit2cloud.com/c/mk/11')"
36+
></AppIcon>
37+
</el-tooltip>
1338
<Avatar></Avatar>
1439
</div>
1540
</div>
@@ -20,6 +45,10 @@ import Avatar from './avatar/index.vue'
2045
import { useRouter } from 'vue-router'
2146
const router = useRouter()
2247
const defaultTitle = import.meta.env.VITE_APP_TITLE
48+
49+
function toUrl(url: string) {
50+
window.open(url, '_blank')
51+
}
2352
</script>
2453
<style lang="scss">
2554
.top-bar-container {

0 commit comments

Comments
 (0)