feat: 头部增加github源码网站
This commit is contained in:
parent
36ddb23db6
commit
21391b202f
14
src/layout/components/header/components/GithubSite.vue
Normal file
14
src/layout/components/header/components/GithubSite.vue
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<template>
|
||||||
|
<n-icon mr20 size="18" style="cursor: pointer" @click="handleLinkClick">
|
||||||
|
<IconGithub />
|
||||||
|
</n-icon>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { IconGithub } from '@/components/AppIcons'
|
||||||
|
function handleLinkClick() {
|
||||||
|
window.open('https://github.com/zclzone/vue-naive-admin')
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped></style>
|
@ -5,6 +5,7 @@
|
|||||||
<BreadCrumb ml-15 />
|
<BreadCrumb ml-15 />
|
||||||
</div>
|
</div>
|
||||||
<div class="h-right">
|
<div class="h-right">
|
||||||
|
<GithubSite />
|
||||||
<FullScreen />
|
<FullScreen />
|
||||||
<UserAvatar />
|
<UserAvatar />
|
||||||
</div>
|
</div>
|
||||||
@ -16,6 +17,7 @@ import BreadCrumb from './components/BreadCrumb.vue'
|
|||||||
import MenuCollapse from './components/MenuCollapse.vue'
|
import MenuCollapse from './components/MenuCollapse.vue'
|
||||||
import FullScreen from './components/FullScreen.vue'
|
import FullScreen from './components/FullScreen.vue'
|
||||||
import UserAvatar from './components/UserAvatar.vue'
|
import UserAvatar from './components/UserAvatar.vue'
|
||||||
|
import GithubSite from './components/GithubSite.vue'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
Loading…
Reference in New Issue
Block a user