Fixed bug when moving list
This commit is contained in:
parent
5e0b2941c7
commit
7e4c70ec4c
2 changed files with 1 additions and 2 deletions
|
@ -73,7 +73,7 @@
|
||||||
},
|
},
|
||||||
moveList (listFrom, orderLists) {
|
moveList (listFrom, orderLists) {
|
||||||
orderLists.forEach((id, i) => {
|
orderLists.forEach((id, i) => {
|
||||||
const list = this.findList('id', id);
|
const list = this.findList('id', parseInt(id));
|
||||||
|
|
||||||
list.position = i;
|
list.position = i;
|
||||||
});
|
});
|
||||||
|
|
|
@ -46,7 +46,6 @@ const BoardsMockData = {
|
||||||
|
|
||||||
Vue.http.interceptors.push((request, next) => {
|
Vue.http.interceptors.push((request, next) => {
|
||||||
const body = BoardsMockData[request.method][request.url];
|
const body = BoardsMockData[request.method][request.url];
|
||||||
console.log(request.url);
|
|
||||||
|
|
||||||
next(request.respondWith(JSON.stringify(body), {
|
next(request.respondWith(JSON.stringify(body), {
|
||||||
status: 200
|
status: 200
|
||||||
|
|
Loading…
Reference in a new issue