...
|
...
|
@@ -24,6 +24,7 @@ export default { |
|
|
return {
|
|
|
page: 1,
|
|
|
id: 0,
|
|
|
columnType: 1001,
|
|
|
sceneId: YAS.scene.list,
|
|
|
userUid: -1
|
|
|
};
|
...
|
...
|
@@ -32,7 +33,12 @@ export default { |
|
|
this.id = +this.$route.params.id;
|
|
|
},
|
|
|
activated() {
|
|
|
if (+this.$route.params.id !== this.id) {
|
|
|
let {columnType} = this.$route.query;
|
|
|
|
|
|
columnType = columnType || 1001;
|
|
|
|
|
|
if (+this.$route.params.id !== this.id || this.columnType !== +columnType) {
|
|
|
this.columnType = +columnType;
|
|
|
this.id = +this.$route.params.id;
|
|
|
this.init();
|
|
|
}
|
...
|
...
|
@@ -59,16 +65,16 @@ export default { |
|
|
this.$refs.article.init();
|
|
|
},
|
|
|
async onFetch() {
|
|
|
const {columnType} = this.$route.query;
|
|
|
const articleId = parseInt(this.id, 10);
|
|
|
|
|
|
if (!articleId) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
const result = await this.fetchArticleList({
|
|
|
articleId,
|
|
|
page: this.page,
|
|
|
columnType
|
|
|
columnType: this.columnType
|
|
|
});
|
|
|
|
|
|
if (result.code === 200) {
|
...
|
...
|
|