File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed
ui/src/layout/components/top-bar Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change
1
+ ·
1
2
<template >
2
3
<div class =" top-bar-container border-b flex-between" >
3
4
<div class =" flex-center h-full" >
9
10
</div >
10
11
<TopMenu ></TopMenu >
11
12
</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 >
13
38
<Avatar ></Avatar >
14
39
</div >
15
40
</div >
@@ -20,6 +45,10 @@ import Avatar from './avatar/index.vue'
20
45
import { useRouter } from ' vue-router'
21
46
const router = useRouter ()
22
47
const defaultTitle = import .meta .env .VITE_APP_TITLE
48
+
49
+ function toUrl(url : string ) {
50
+ window .open (url , ' _blank' )
51
+ }
23
52
</script >
24
53
<style lang="scss">
25
54
.top-bar-container {
You can’t perform that action at this time.
0 commit comments