vue-admin-template 左侧侧边栏顶部显示自定义logo
实现效果:
打开项目的\src\settings.js 文件 sidebarLogo 状态改为true:
/**
* @type {boolean} true | false
* @description Whether show the logo in sidebar
*/
sidebarLogo: true
修改title和logo可以在\src\layout\components\Sidebar\Logo.vue中
data() {
return {
title: '智牧肉牛管理系统',
//logo: 'https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png'
//自定义设置logo
logo:require('@/assets/beef_logo.png')
}
}
以上就可以啦,如果需要图标的话可以去阿里巴巴矢量图标库查找