feat : 用户个人中心展示及密码设置

This commit is contained in:
2024-07-15 21:46:40 +08:00
parent 1f631ea65d
commit 8f993d0644
4 changed files with 196 additions and 170 deletions

View File

@@ -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()