feat : 用户个人中心展示及密码设置
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<div class="right-bar">
|
||||
<!-- <bell-socket/>-->
|
||||
<div class="user-box">
|
||||
<div @click.stop="handleVisitedP">
|
||||
<div @click.stop="handleVisitedP">
|
||||
<el-avatar>{{ userInfo.nickName }}</el-avatar>
|
||||
<div>{{ userInfo.nickName }}
|
||||
<el-icon style="margin-left: 5px">
|
||||
@@ -40,12 +40,12 @@
|
||||
</div>
|
||||
<!-- <li v-for="item in accountList" :label="item.userName" :value="item.userId"/>-->
|
||||
</li>
|
||||
<!-- <li @click="handleToAuth">-->
|
||||
<!-- <el-icon color="gray" size="20" style="margin-right: 5px">-->
|
||||
<!-- <UserFilled/>-->
|
||||
<!-- </el-icon>-->
|
||||
<!-- 个人中心-->
|
||||
<!-- </li>-->
|
||||
<li @click="handleToAuth">
|
||||
<el-icon color="gray" size="20" style="margin-right: 5px">
|
||||
<UserFilled/>
|
||||
</el-icon>
|
||||
个人中心
|
||||
</li>
|
||||
<li @click="handleLogout">
|
||||
<el-icon color="gray" size="20" style="margin-right: 5px">
|
||||
<SwitchButton/>
|
||||
@@ -118,8 +118,8 @@ const accountChange = (userId) => {
|
||||
visitedP.value = !visitedP.value
|
||||
authStore.userLogout()
|
||||
setToken(res.data)
|
||||
console.log('router',route)
|
||||
if(route.path!=='/'){
|
||||
console.log('router', route)
|
||||
if (route.path !== '/') {
|
||||
|
||||
}
|
||||
location.reload()
|
||||
|
||||
Reference in New Issue
Block a user