优化代码

This commit is contained in:
java110 2023-09-21 15:11:20 +08:00
parent 801cbe0462
commit 5c36854dc4

View File

@ -74,7 +74,8 @@
}, },
titles: [], titles: [],
qaId: '', qaId: '',
communityId: '' communityId: '',
userQaId:''
}; };
}, },
@ -86,6 +87,7 @@
context.onLoad(options); context.onLoad(options);
this.communityId = context.getCurrentCommunity().communityId; this.communityId = context.getCurrentCommunity().communityId;
this.qaId = options.qaId; this.qaId = options.qaId;
this.userQaId = options.userQaId;
this._queryQuestionAnswer(); this._queryQuestionAnswer();
queryQuestionAnswerTitle({ queryQuestionAnswerTitle({
@ -127,6 +129,7 @@
page: 1, page: 1,
row: 1, row: 1,
qaId:this.qaId, qaId:this.qaId,
userQaId:this.userQaId,
communityId: that.communityId, communityId: that.communityId,
}) })
.then(_data => { .then(_data => {