|
@@ -71,7 +71,7 @@
|
|
|
<el-dropdown-item
|
|
<el-dropdown-item
|
|
|
icon="el-icon-s-data"
|
|
icon="el-icon-s-data"
|
|
|
class="size"
|
|
class="size"
|
|
|
- @click.native="goToPost"
|
|
|
|
|
|
|
+ @click.native="goToHistory"
|
|
|
>历史记录
|
|
>历史记录
|
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
|
<el-dropdown-item
|
|
<el-dropdown-item
|
|
@@ -324,12 +324,12 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.$router.push(path)
|
|
this.$router.push(path)
|
|
|
},
|
|
},
|
|
|
- goToPost() {
|
|
|
|
|
- if (this.$route.path === '/post') {
|
|
|
|
|
|
|
+ goToHistory() {
|
|
|
|
|
+ if (this.$route.path === '/post/history') {
|
|
|
this.$router.go(0)
|
|
this.$router.go(0)
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- this.$router.push('/post')
|
|
|
|
|
|
|
+ this.$router.push('/post/history')
|
|
|
},
|
|
},
|
|
|
goToMessage() {
|
|
goToMessage() {
|
|
|
if (this.$route.path === '/my/message') {
|
|
if (this.$route.path === '/my/message') {
|