Skip to content

Commit

Permalink
修复点击logo无法回到主页的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
click33 committed Jun 24, 2019
1 parent ee36d4f commit 09e5a0b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<!-- 左 -->
<div class="nav-left">
<!-- 左上 -->
<div class="nav-left-top" :title="title" @click="nativePage = pageList[0]">
<div class="nav-left-top" :title="title" @click="showPage(homePage)">
<img :src="logo_url" class="admin-logo">
<span class="nav-title" style="font-size: 1.1em;">{{title}}</span>
</div>
Expand Down
1 change: 1 addition & 0 deletions sa-html/sa-doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#### 3、设置模板标题
``` js
sp.title = "SA-后台模板";
// sp.logo_url='url'; // 设置logo图标地址 默认值:sa-resources/admin-logo.png
```

#### 4、自定义菜单树
Expand Down
1 change: 1 addition & 0 deletions sa-resources/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var sp = new Vue({
logo_url: 'sa-resources/admin-logo.png', // logo地址
default_active: '0', // 默认的高亮菜单id
menuList: [], // 菜单集合
homePage: homePage, // 主页page
nativePage: homePage, // 当前正显示的Page
pageList: [homePage], // 页面集合
scrollX: 0 ,// 滚动条位置
Expand Down
1 change: 1 addition & 0 deletions sa-resources/my-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

// 设置模板标题
sp.title = "SA-后台模板";
// sp.logo_url='url'; // 设置logo图标地址 默认值:sa-resources/admin-logo.png


// ================================= 示例:自定义菜单 =================================
Expand Down

0 comments on commit 09e5a0b

Please sign in to comment.