Commit e669ff2cc8955e5741574d3538aff79a505a66cf

Authored by wuxw
1 parent b45f6e5d

点击logo 进入首页bug 修复

Showing 1 changed file with 5 additions and 1 deletions
src/views/layout/layout.vue
... ... @@ -3,7 +3,7 @@
3 3 <!-- 顶部导航 -->
4 4 <el-header height="60px" class="app-header">
5 5 <div class="header-left">
6   - <div class="logo">{{systemInfo.systemSimpleTitle}}</div>
  6 + <div class="logo" @click="_toIndex">{{systemInfo.systemSimpleTitle}}</div>
7 7 <el-menu mode="horizontal" :default-active="activeMenu" class="header-menu" background-color="#1e2132"
8 8 text-color="#fff" active-text-color="#409EFF">
9 9 <el-menu-item :index="item.caId" v-for="(item, index) in catalogs" :key="index"
... ... @@ -312,6 +312,9 @@ export default {
312 312 return true;
313 313 }
314 314 return false;
  315 + },
  316 + _toIndex(){
  317 + location.href = '/'
315 318 }
316 319  
317 320 }
... ... @@ -345,6 +348,7 @@ export default {
345 348 font-size: 24px;
346 349 font-weight: bold;
347 350 color: #409EFF;
  351 + cursor: pointer;
348 352 }
349 353  
350 354 .header-menu {
... ...