提交 70836a93 authored 作者: pengxiaohui's avatar pengxiaohui

增加官网链接

上级 77cc3ee9
......@@ -3,12 +3,13 @@
<div class="color-bar"></div>
<div class="head-top-content">
<div class="max-width-content">
<app-link :item="{ path: '/' }">
<div class="logo-box">
<img src="http://zws-imgs-pub.oss-cn-beijing.aliyuncs.com/static/ezijing/logo/ezijing-logo.svg" />
<img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/marywood/marywood_logo.svg" />
</div>
<img @click="goWebsite" src="http://zws-imgs-pub.oss-cn-beijing.aliyuncs.com/static/ezijing/logo/ezijing-logo.svg">
<app-link :item="{ path: '/' }">
<img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/marywood/marywood_logo.svg">
</app-link>
</div>
<div class="user" v-if="user.id">
<span>{{ user.realname || user.nickname }}</span
><em>|</em><span class="logout" @click="logout">退出</span>
......@@ -37,6 +38,9 @@ export default {
return {}
},
methods: {
goWebsite() {
window.location.href = 'http://www.ezijing.com'
},
logout() {
this.$store.dispatch('logout').then(() => {
this.$router.replace('/')
......@@ -89,8 +93,8 @@ li {
height: 55px;
cursor: pointer;
display: block;
&:nth-child(2) {
margin-left: 20px;
&:nth-child(1){
margin-right: 20px;
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论