1
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<div class="navbar" :data-theme="sideTheme" :class="appStore.device + ' nav' + settingsStore.navType">
|
||||
<hamburger :is-active="appStore.sidebar.opened" :class="appStore.device" class="hamburger-container" @toggleClick="toggleSideBar" />
|
||||
<hamburger :is-active="appStore.sidebar.opened" :class="appStore.device" class="hamburger-container"
|
||||
@toggleClick="toggleSideBar" />
|
||||
<template v-if="appStore.device == 'desktop'">
|
||||
<breadcrumb class="breadcrumb-container" v-if="settingsStore.navType == 1" />
|
||||
<top-nav class="topmenu-container" v-if="settingsStore.navType == 2" />
|
||||
@@ -11,8 +12,8 @@
|
||||
<header-search class="right-menu-item" />
|
||||
<Notice title="通知" class="right-menu-item" />
|
||||
<template v-if="appStore.device == 'desktop'">
|
||||
<zr-git title="源码地址" class="right-menu-item" />
|
||||
<zr-doc title="文档地址" class="right-menu-item" />
|
||||
<!-- <zr-git title="源码地址" class="right-menu-item" />
|
||||
<zr-doc title="文档地址" class="right-menu-item" /> -->
|
||||
<screenfull title="全屏" class="right-menu-item" />
|
||||
</template>
|
||||
<size-select title="布局大小" class="right-menu-item" />
|
||||
@@ -47,7 +48,9 @@
|
||||
</el-dropdown>
|
||||
</div>
|
||||
<div class="right-menu-item mr10" @click="handleCommand('setLayout')">
|
||||
<el-icon><Setting /></el-icon>
|
||||
<el-icon>
|
||||
<Setting />
|
||||
</el-icon>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -122,7 +125,7 @@ function logout() {
|
||||
location.href = import.meta.env.VITE_APP_ROUTER_PREFIX + 'index'
|
||||
})
|
||||
})
|
||||
.catch(() => {})
|
||||
.catch(() => { })
|
||||
}
|
||||
|
||||
const emits = defineEmits(['setLayout'])
|
||||
@@ -168,6 +171,7 @@ function setLayout() {
|
||||
.breadcrumb-container {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.topmenu-container {
|
||||
flex: 1;
|
||||
}
|
||||
@@ -196,6 +200,7 @@ function setLayout() {
|
||||
.avatar-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.user-avatar {
|
||||
cursor: pointer;
|
||||
width: 30px;
|
||||
@@ -204,9 +209,11 @@ function setLayout() {
|
||||
vertical-align: middle;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.name {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
i {
|
||||
cursor: pointer;
|
||||
margin-left: 10px;
|
||||
|
||||
Reference in New Issue
Block a user