|
|
@@ -21,7 +21,7 @@
|
|
|
<img class="img" :src="avatarBox" />
|
|
|
</span>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item command="nickname" style="word-break: keep-all"> </el-dropdown-item>
|
|
|
+ <el-dropdown-item command="nickname" style="word-break: keep-all">1111 </el-dropdown-item>
|
|
|
<div class="border1"></div>
|
|
|
<el-dropdown-item command="supply" style="word-break: keep-all">去认证 </el-dropdown-item>
|
|
|
<el-dropdown-item command="edit" style="word-break: keep-all">编辑资料 </el-dropdown-item>
|
|
|
@@ -79,6 +79,10 @@ export default {
|
|
|
onCommand(command) {
|
|
|
if (command === 'edit') {
|
|
|
this.$router.push('/accountdata');
|
|
|
+ } else if (command === 'logout') {
|
|
|
+ localStorage.removeItem('webToken');
|
|
|
+ this.updateUserInfo(null);
|
|
|
+ this.$router.push('/');
|
|
|
}
|
|
|
}
|
|
|
}
|