|
|
@@ -4,9 +4,6 @@
|
|
|
<a-col :span="6" >
|
|
|
<search />
|
|
|
</a-col>
|
|
|
- <a-col :span="6" class="logo" >
|
|
|
- <img :src="logoPng" alt="">
|
|
|
- </a-col>
|
|
|
<a-col :span="6" class="df-center">
|
|
|
<a-button type="text" @click="changeTheme" > <IconTsx :name="iconName" /></a-button>
|
|
|
</a-col>
|
|
|
@@ -16,16 +13,11 @@
|
|
|
</a-row>
|
|
|
</a-layout-header>
|
|
|
<a-layout-header class="header-pc" v-else :style="{backgroundColor: headerBgColor, height: '54px'}">
|
|
|
- <a-row style="width: 100%;height: 54px;" justify="center" >
|
|
|
- <a-col :span="2" >
|
|
|
- <div class="logo" style="height: 54px;" >
|
|
|
- <img :src="logoPng" alt="">
|
|
|
- </div>
|
|
|
- </a-col>
|
|
|
- <a-col :span="13" style="height: 54px;" >
|
|
|
+ <a-row style="width: 100%;height: 54px;" justify="start" >
|
|
|
+ <a-col :span="15" style="height: 54px;" >
|
|
|
<a-menu
|
|
|
mode="horizontal"
|
|
|
- :style="{ lineHeight: '54px', border: 'none' }"
|
|
|
+ :style="{ lineHeight: '54px', border: 'none' , marginLeft: '-20px'}"
|
|
|
:selectedKeys="selectedKeys"
|
|
|
>
|
|
|
<a-menu-item
|
|
|
@@ -74,8 +66,6 @@ import search from './components/search/index.vue'
|
|
|
import { DesktopOutlined } from '@ant-design/icons-vue'
|
|
|
import { message } from 'ant-design-vue'
|
|
|
|
|
|
-const logoPng = require('@/assets/logo/logo-blue.png')
|
|
|
-
|
|
|
const route = useRoute()
|
|
|
|
|
|
const router = useRouter()
|
|
|
@@ -95,15 +85,7 @@ const isMobile = useDeviceType()
|
|
|
const changeTheme = () => designStore.changeModeltheme()
|
|
|
|
|
|
const changeRouter = (route: ROUTER.RoutesProps) => {
|
|
|
- // if (route.link) {
|
|
|
- // window.open(route.path)
|
|
|
- // } else {
|
|
|
- // selectedKeys.value = [route.path]
|
|
|
- // router.push(route.path)
|
|
|
- // }
|
|
|
selectedKeys.value = [route.path]
|
|
|
- console.log('route:', route, selectedKeys)
|
|
|
-
|
|
|
appRouter.changeNavbarRoute(route)
|
|
|
}
|
|
|
|
|
|
@@ -122,6 +104,7 @@ const addDeskToApp = () => {
|
|
|
message.error('浏览器暂不支持此操作')
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped >
|
|
|
@@ -135,9 +118,10 @@ const addDeskToApp = () => {
|
|
|
position: relative;
|
|
|
height: 54px;
|
|
|
z-index: 20;
|
|
|
- box-shadow: 0 1px 4px rgba(0,21,41,.12);
|
|
|
+ // box-shadow: 0 1px 4px rgba(0,21,41,.12);
|
|
|
+
|
|
|
overflow: hidden;
|
|
|
- padding-left: 20px;
|
|
|
+ padding: 0;
|
|
|
}
|
|
|
|
|
|
.df-center {
|
|
|
@@ -146,14 +130,4 @@ const addDeskToApp = () => {
|
|
|
align-items: center;
|
|
|
}
|
|
|
|
|
|
-.logo {
|
|
|
- display: flex;
|
|
|
- justify-content: flex-start;
|
|
|
- align-items: center;
|
|
|
- img {
|
|
|
- width: 115px;
|
|
|
- height: 50px;
|
|
|
- display: block;
|
|
|
- }
|
|
|
-}
|
|
|
</style>
|