projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Knightrelay1. Some fixes. Move odd 'isAttackedBy_multiple_colors' to Checkered...
[vchess.git]
/
client
/
src
/
views
/
News.vue
diff --git
a/client/src/views/News.vue
b/client/src/views/News.vue
index
0e3c3c7
..
66a5249
100644
(file)
--- a/
client/src/views/News.vue
+++ b/
client/src/views/News.vue
@@
-68,6
+68,7
@@
export default {
this.newsList = res.newsList;
const L = res.newsList.length;
if (L > 0) this.cursor = res.newsList[L - 1].added;
this.newsList = res.newsList;
const L = res.newsList.length;
if (L > 0) this.cursor = res.newsList[L - 1].added;
+ else this.hasMore = false;
}
}
);
}
}
);
@@
-169,10
+170,10
@@
export default {
{
data: { cursor: this.cursor },
success: (res) => {
{
data: { cursor: this.cursor },
success: (res) => {
- if (res.newsList.length > 0) {
+ const L = res.newsList.length;
+ if (L > 0) {
this.newsList = this.newsList.concat(res.newsList);
this.newsList = this.newsList.concat(res.newsList);
- const L = res.newsList.length;
- if (L > 0) this.cursor = res.newsList[L - 1].added;
+ this.cursor = res.newsList[L - 1].added;
} else this.hasMore = false;
}
}
} else this.hasMore = false;
}
}