From 34f91f04ad5d3933452eaa257839fb3428b00360 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 21 Feb 2018 01:23:25 +0900 Subject: [PATCH] wip --- src/web/app/common/views/components/poll-editor.vue | 2 +- src/web/app/desktop/views/components/drive.vue | 4 ++-- src/web/app/mobile/views/components/drive.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/web/app/common/views/components/poll-editor.vue b/src/web/app/common/views/components/poll-editor.vue index 2ae91bf25e..7428d80547 100644 --- a/src/web/app/common/views/components/poll-editor.vue +++ b/src/web/app/common/views/components/poll-editor.vue @@ -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() { diff --git a/src/web/app/desktop/views/components/drive.vue b/src/web/app/desktop/views/components/drive.vue index 2b33265e5d..fd30e13592 100644 --- a/src/web/app/desktop/views/components/drive.vue +++ b/src/web/app/desktop/views/components/drive.vue @@ -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; } diff --git a/src/web/app/mobile/views/components/drive.vue b/src/web/app/mobile/views/components/drive.vue index 59b2c256d5..f334f22418 100644 --- a/src/web/app/mobile/views/components/drive.vue +++ b/src/web/app/mobile/views/components/drive.vue @@ -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; }