Use vm.$set

https://jp.vuejs.org/v2/api/#vm-set

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-09-14 12:42:33 +09:00
parent a13c488d0e
commit 6fd3a56f58
No known key found for this signature in database
GPG Key ID: F9E3E329A5C5E4A1

View File

@ -131,7 +131,7 @@ $(document).ready(() => {
$.getJSON(`${relativeUrlRoot}/api/settings`, (data) => {
console.log(data);
_.each(data, (elements, label) => {
this.sections[label] = elements;
this.$set(this.sections, label, elements);
});
this.loaded = true;
setTimeout(() => {