...
|
...
|
@@ -21,25 +21,29 @@ export default { |
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.isMine = !this.$route.params.id;
|
|
|
this._baseParams = {
|
|
|
authorType: this.$route.params.type || 1,
|
|
|
limit: 20,
|
|
|
};
|
|
|
|
|
|
if (!this.isMine) {
|
|
|
this._baseParams.authorUid = this.$route.params.id;
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
|
this.init(this.$route.params);
|
|
|
this.$refs.userList.init();
|
|
|
},
|
|
|
beforeRouteUpdate(to, from, next) {
|
|
|
this.init(to.params)
|
|
|
this.$refs.userList.init();
|
|
|
next();
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['authorAttentionList', 'authorMineAttentionList']),
|
|
|
init(params) {
|
|
|
this.isMine = !params.id;
|
|
|
|
|
|
if (!this.isMine) {
|
|
|
this._baseParams.authorUid = params.id;
|
|
|
}
|
|
|
},
|
|
|
onFetch({page, lastedTime}) {
|
|
|
let params = Object.assign({page, lastedTime}, this._baseParams);
|
|
|
|
...
|
...
|
|