This commit is contained in:
syuilo 2018-02-21 01:23:25 +09:00
parent 49d257992f
commit 34f91f04ad
3 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ export default Vue.extend({
},
methods: {
onInput(i, e) {
this.choices[i] = e.target.value; // TODO
Vue.set(this.choices, i, e.target.value);
},
add() {

View file

@ -417,7 +417,7 @@ export default Vue.extend({
if (this.folders.some(f => f.id == folder.id)) {
const exist = this.folders.map(f => f.id).indexOf(folder.id);
this.folders[exist] = folder; // TODO
Vue.set(this.folders, exist, folder);
return;
}
@ -434,7 +434,7 @@ export default Vue.extend({
if (this.files.some(f => f.id == file.id)) {
const exist = this.files.map(f => f.id).indexOf(file.id);
this.files[exist] = file; // TODO
Vue.set(this.files, exist, file);
return;
}

View file

@ -193,7 +193,7 @@ export default Vue.extend({
if (this.files.some(f => f.id == file.id)) {
const exist = this.files.map(f => f.id).indexOf(file.id);
this.files[exist] = file; // TODO
Vue.set(this.files, exist, file);
return;
}