提交 73eab9b9 authored 作者: 王鹏飞's avatar 王鹏飞

chore: 修改nac项目logo

上级 7a650bb3
...@@ -14,7 +14,9 @@ const router = useRouter() ...@@ -14,7 +14,9 @@ const router = useRouter()
const userStore = useUserStore() const userStore = useUserStore()
const userInfo = userStore.user const userInfo = userStore.user
const logoWidth = computed(() => {
return appConfig.logoWidth ?? '145px'
})
const menuStore = useMenuStore() const menuStore = useMenuStore()
const menus = $computed(() => { const menus = $computed(() => {
// 大赛系统隐藏学生端、教师端的菜单 // 大赛系统隐藏学生端、教师端的菜单
...@@ -34,7 +36,7 @@ const defaultActive = computed(() => { ...@@ -34,7 +36,7 @@ const defaultActive = computed(() => {
} }
return result return result
}, []) }, [])
const found = flatMenuList.reverse().find(item => { const found = flatMenuList.reverse().find((item) => {
return route.path.includes(item.path) return route.path.includes(item.path)
}) })
return found ? found.path : '/' return found ? found.path : '/'
...@@ -73,7 +75,12 @@ function handleClick(path: string) { ...@@ -73,7 +75,12 @@ function handleClick(path: string) {
<div class="app-header-nav"> <div class="app-header-nav">
<el-menu mode="horizontal" router :default-active="defaultActive"> <el-menu mode="horizontal" router :default-active="defaultActive">
<template v-for="item in menus" :key="item.path"> <template v-for="item in menus" :key="item.path">
<el-sub-menu :index="item.path" :popper-offset="0" popper-class="sub-menu-popper" v-permission="item.tag" v-if="item.children"> <el-sub-menu
:index="item.path"
:popper-offset="0"
popper-class="sub-menu-popper"
v-permission="item.tag"
v-if="item.children">
<template #title> <template #title>
{{ item.name }} {{ item.name }}
</template> </template>
...@@ -134,7 +141,10 @@ function handleClick(path: string) { ...@@ -134,7 +141,10 @@ function handleClick(path: string) {
height: 66px; height: 66px;
background-color: #fff; background-color: #fff;
.logo { .logo {
width: 145px; width: v-bind(logoWidth);
img {
width: 100%;
}
} }
} }
.app-header-left { .app-header-left {
......
...@@ -125,7 +125,8 @@ const appConfigList = [ ...@@ -125,7 +125,8 @@ const appConfigList = [
{ {
system: 'nac', system: 'nac',
title: '首届网络视听行业职业技能大赛', title: '首届网络视听行业职业技能大赛',
logo: 'https://webapp-pub.ezijing.com/website/base/logo.svg', logo: '/images/nac_logo.png',
logoWidth: '40px',
// logo: 'https://webapp-pub.ezijing.com/website/base/images/logo_swsjfxs.png', // logo: 'https://webapp-pub.ezijing.com/website/base/images/logo_swsjfxs.png',
// favicon: 'https://webapp-pub.ezijing.com/website/base/images/favicon_swsjfxs.png', // favicon: 'https://webapp-pub.ezijing.com/website/base/images/favicon_swsjfxs.png',
hosts: ['saas-lab-nac'], hosts: ['saas-lab-nac'],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论