no message
This commit is contained in:
@@ -23,12 +23,12 @@
|
||||
<div class="head-more-userinfo flex1 flexacenter">
|
||||
<div class="head-more-left flexacenter" v-if="islogin">
|
||||
<router-link class="flexacenter" to="/user" @click.native="headMorePopState = !headMorePopState">
|
||||
<img class="head-more-userinfo-avatar" :src="userInfo.avatar || process.env.URL_ENV + '/img/defaultAvatar.jpg'" />
|
||||
<img class="head-more-userinfo-avatar" :src="userInfo.avatar || $baseURL + '/img/defaultAvatar.jpg'" />
|
||||
<div class="head-more-userinfo-username">{{ userInfo.nickname || "未登录" }}</div>
|
||||
</router-link>
|
||||
</div>
|
||||
<div class="head-more-left flexacenter" v-else @click="handleRegister()">
|
||||
<img class="head-more-userinfo-avatar" :src="userInfo.avatar || process.env.URL_ENV + '/img/defaultAvatar.jpg'" />
|
||||
<img class="head-more-userinfo-avatar" :src="userInfo.avatar || $baseURL + '/img/defaultAvatar.jpg'" />
|
||||
<div class="head-more-userinfo-username">{{ userInfo.nickname || "未登录" }}</div>
|
||||
</div>
|
||||
|
||||
@@ -83,6 +83,7 @@ export default {
|
||||
menu: [],
|
||||
hotSearchkeywords: [], // 热门搜索
|
||||
invitationPost,
|
||||
$baseURL: "", // 根目录
|
||||
}
|
||||
},
|
||||
props: ["issearch", "needgetuser", "userinfo"],
|
||||
@@ -101,6 +102,7 @@ export default {
|
||||
this.hotSearchkeywords = this.$store.state.hotSearchkeywords
|
||||
this.menu = this.$store.state.menu
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
@@ -26,6 +26,7 @@ Vue.prototype.$closeUnderLoading = closeUnderLoading // 关闭加载提示 elem
|
||||
Vue.prototype.$formattedDate = formattedDate // 时间戳转格式
|
||||
Vue.prototype.$updateURLSearchParams = updateURLSearchParams // 不刷新的情况下修改url
|
||||
Vue.prototype.$clearCookies = clearCookies // 清空Cookies
|
||||
Vue.prototype.$baseURL = "https://x-cloud-project.oss-cn-guangzhou.aliyuncs.com/forum" // 清空Cookies
|
||||
|
||||
//svg文件引入
|
||||
import './icons'
|
||||
|
||||
Reference in New Issue
Block a user