Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
front-backend
Commits
707f15d8
Commit
707f15d8
authored
Apr 17, 2019
by
zhengjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增网站logo显示,文件位于views/layout/components/Sidebar/index.vue
parent
20b0f684
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/views/layout/components/Sidebar/index.vue
+5
-5
No files found.
src/views/layout/components/Sidebar/index.vue
View file @
707f15d8
...
...
@@ -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=
"logoIm
g"
>
<img
src=
"https://aurora-1255840532.cos.ap-chengdu.myqcloud.com/logo.pn
g"
>
</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
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment