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