Commit 707f15d8 by zhengjie

新增网站logo显示,文件位于views/layout/components/Sidebar/index.vue

parent 20b0f684
......@@ -10,12 +10,12 @@
active-text-color="#409EFF"
>
<!-- 修改logo -->
<el-menu-item :class="{'submenu-title-noDropdown':isCollapse}" index="99999999" style="pointer-events: none;">
<el-menu-item :class="{'submenu-title-noDropdown':isCollapse}" style="pointer-events: none;">
<!-- 缩小时显示的logo,可以自定义,这里直接使用图标库中的 -->
<svg-icon v-if="isCollapse" icon-class="run" />
<!--正常状态下显示的-->
<!--正常状态下显示的,可以使用本地的logoImg-->
<div class="logo-con">
<img :src="logoImg">
<img src="https://aurora-1255840532.cos.ap-chengdu.myqcloud.com/logo.png">
</div>
</el-menu-item>
<sidebar-item v-for="route in permission_routers" :key="route.path" :item="route" :base-path="route.path"/>
......@@ -26,12 +26,12 @@
<script>
import { mapGetters } from 'vuex'
import SidebarItem from './SidebarItem'
import logoImg from '@/assets/logo/logo.png'
// import logoImg from '@/assets/logo/logo.png'
export default {
components: { SidebarItem },
data() {
return {
logoImg: logoImg
// logoImg: logoImg
}
},
computed: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment