Authored by yyq

fix topic

... ... @@ -164,8 +164,6 @@ export default {
name: 'topic',
params: {
topicId,
},
query: {
topicName
}
});
... ...
... ... @@ -43,8 +43,6 @@ export default {
name: 'topic',
params: {
topicId,
},
query: {
topicName
}
});
... ...
... ... @@ -55,8 +55,8 @@ export default [{
keepAlive: true
}
}, {
path: '/topic/:topicId',
alias: '/topic/:topicId',
path: '/topic/:topicId/:topicName',
alias: '/topic/:topicId/:topicName',
name: 'topic',
component: () => import(/* webpackChunkName: "topic" */ './topic'),
meta: {
... ...
... ... @@ -85,7 +85,7 @@ export default {
};
},
created() {
this.topicName = this.$route.query.topicName;
this.topicName = this.$route.params.topicName;
},
activated() {
if (this.scrollTop && this.yoho.direction === 'back') {
... ... @@ -94,7 +94,7 @@ export default {
if (+this.$route.params.topicId !== this.topicId) {
this.topicId = +this.$route.params.topicId;
this.topicName = this.$route.query.topicName;
this.topicName = this.$route.params.topicName;
this.reload = true;
this.init();
}
... ...
... ... @@ -282,7 +282,7 @@ export default {
return result;
},
async fetchTopicSimpleInfo({ commit, state }, {topicId}) {
if (state.fetchTopicInfo || get(state.topicInfo, 'topicId') === topicId) {
if (state.fetchTopicInfo) {
return Promise.resolve({});
}
... ...