|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="head-wrapper">
|
|
|
<div class="head-logo">
|
|
|
- <svg-icon icon-class="zhihui-logo" />
|
|
|
+ <svg-icon icon-class="zhihui-logo" @click="topHome()" />
|
|
|
</div>
|
|
|
<div v-for="item in headList" :key="item.path" class="nav-tag" @click="changeNavTag(item)">
|
|
|
<div v-if="item.icon" class="icon">
|
|
@@ -86,6 +86,9 @@ export default {
|
|
|
// 退出登录
|
|
|
layout() {
|
|
|
window.location.href = logoutUrl
|
|
|
+ },
|
|
|
+ topHome() {
|
|
|
+ this.$router.push({ path: '/' })
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -108,6 +111,7 @@ export default {
|
|
|
width: 40px;
|
|
|
margin-bottom: 42px;
|
|
|
.svg-icon {
|
|
|
+ cursor: pointer;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|