projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug when editing news just posted
[vchess.git]
/
client
/
src
/
views
/
News.vue
diff --git
a/client/src/views/News.vue
b/client/src/views/News.vue
index
5b2c80f
..
1509d67
100644
(file)
--- a/
client/src/views/News.vue
+++ b/
client/src/views/News.vue
@@
-57,7
+57,7
@@
export default {
},
created: function() {
ajax("/news", "GET", { cursor: this.cursor }, res => {
},
created: function() {
ajax("/news", "GET", { cursor: this.cursor }, res => {
- this.newsList = res.newsList.sort((n1, n2) => n
1.added - n2
.added);
+ this.newsList = res.newsList.sort((n1, n2) => n
2.added - n1
.added);
const L = res.newsList.length;
if (L > 0) this.cursor = this.newsList[0].id;
});
const L = res.newsList.length;
if (L > 0) this.cursor = this.newsList[0].id;
});