Fix json query path
This commit is contained in:
parent
569fb9282c
commit
195da2155a
2
book.js
2
book.js
@ -57,7 +57,7 @@ var app = new Vue({
|
|||||||
},
|
},
|
||||||
loadBook: function() {
|
loadBook: function() {
|
||||||
if (this.urlParams.id)
|
if (this.urlParams.id)
|
||||||
this.sendQuery('cgi-bin/bouquins/books/' + this.urlParams.id, this.stdError, this.bookSuccess);
|
this.sendQuery('/cgi-bin/bouquins/books/' + this.urlParams.id, this.stdError, this.bookSuccess);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created: function() {
|
created: function() {
|
||||||
|
4
index.js
4
index.js
@ -39,7 +39,7 @@ var app = new Vue({
|
|||||||
this.booksCount = resp.count;
|
this.booksCount = resp.count;
|
||||||
},
|
},
|
||||||
loadIndex: function() {
|
loadIndex: function() {
|
||||||
this.sendQuery('cgi-bin/bouquins/index', this.stdError, this.indexSuccess);
|
this.sendQuery('/cgi-bin/bouquins/index', this.stdError, this.indexSuccess);
|
||||||
},
|
},
|
||||||
booksSuccess: function(resp) {
|
booksSuccess: function(resp) {
|
||||||
this.books = resp;
|
this.books = resp;
|
||||||
@ -55,7 +55,7 @@ var app = new Vue({
|
|||||||
this.loadBooks();
|
this.loadBooks();
|
||||||
},
|
},
|
||||||
loadBooks: function() {
|
loadBooks: function() {
|
||||||
this.sendQuery('cgi-bin/bouquins/books?page=' + this.page + '&perpage=' + this.perpage,
|
this.sendQuery('/cgi-bin/bouquins/books?page=' + this.page + '&perpage=' + this.perpage,
|
||||||
this.stdError, this.booksSuccess);
|
this.stdError, this.booksSuccess);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user