Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-community-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
6 years ago
Commit
a36d36687a38be5ee21cf6f88d5d5484f8355fce
1 parent
39d0e342
fix fetch
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
apps/pages/article/topic.vue
apps/pages/article/topic.vue
View file @
a36d366
...
...
@@ -297,10 +297,11 @@ export default {
async onFetch() {
const topicId = parseInt(this.topicId, 10);
if (!topicId) {
return;
if (!topicId || this.fetching) {
return [];
}
this.fetching = true;
this.page = this.page || 1;
let result = get(this.listPreCache, `${this.topicId}-${this.page}`);
...
...
@@ -312,6 +313,7 @@ export default {
});
}
this.fetching = false;
let list = [];
if (result.code === 200) {
...
...
Please
register
or
login
to post a comment