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+ ·
12<template >
23 <div class =" top-bar-container border-b flex-between" >
34 <div class =" flex-center h-full" >
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'
2045import { useRouter } from ' vue-router'
2146const router = useRouter ()
2247const 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 {
You can’t perform that action at this time.
0 commit comments