|
|
@@ -91,7 +91,12 @@
|
|
|
@click.native="goToProfile"
|
|
|
>我的帐号</el-dropdown-item>
|
|
|
<el-dropdown-item
|
|
|
- icon="el-icon-star-on"
|
|
|
+ icon="el-icon-s-home"
|
|
|
+ class="size"
|
|
|
+ @click.native="goToHome"
|
|
|
+ >我的主页</el-dropdown-item>
|
|
|
+ <el-dropdown-item
|
|
|
+ icon="el-icon-s-data"
|
|
|
class="size"
|
|
|
@click.native="goToPost"
|
|
|
>我的稿件
|
|
|
@@ -198,9 +203,14 @@ export default {
|
|
|
this.dialogVisible2 = false
|
|
|
this.dialogVisible = true
|
|
|
},
|
|
|
- goToStatus() {
|
|
|
- this.$router.push('/status')
|
|
|
- }
|
|
|
+ goToHome() {
|
|
|
+ const path = '/user/' + this.user.userId
|
|
|
+ if (this.$route.path === path) {
|
|
|
+ this.$router.go(0)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$router.push(path)
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|