From 3817dbc92535f9581955e36051fdf926337293cc Mon Sep 17 00:00:00 2001 From: Cutls Date: Tue, 2 Jul 2019 00:32:28 +0900 Subject: [PATCH] Some bugs about Vue --- app/js/ui/settings.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/js/ui/settings.js b/app/js/ui/settings.js index dcc96bfd..55722035 100644 --- a/app/js/ui/settings.js +++ b/app/js/ui/settings.js @@ -113,6 +113,7 @@ function load() { } var max = tlView.config.length; for (var i = 0; i < max; i++) { + var ls = tlView.config[i].storage; if (ls) { if (localStorage.getItem(ls)) { tlView.config[i].setValue = localStorage.getItem(ls) @@ -120,7 +121,9 @@ function load() { } else { ls = tlView.config[i].data for (var j = 0; j < ls.length; j++) { - tlView.config[i].data[j].setValue = localStorage.getItem(ls[j].storage) + if(localStorage.getItem(tlView.config[i].data[j].storage)){ + tlView.config[i].data[j].setValue = localStorage.getItem(tlView.config[i].data[j].storage) + } } } }