Some bugs about Vue

This commit is contained in:
Cutls 2019-07-02 00:32:28 +09:00
parent 63ec669c52
commit 3817dbc925

View File

@ -113,6 +113,7 @@ function load() {
} }
var max = tlView.config.length; var max = tlView.config.length;
for (var i = 0; i < max; i++) { for (var i = 0; i < max; i++) {
var ls = tlView.config[i].storage;
if (ls) { if (ls) {
if (localStorage.getItem(ls)) { if (localStorage.getItem(ls)) {
tlView.config[i].setValue = localStorage.getItem(ls) tlView.config[i].setValue = localStorage.getItem(ls)
@ -120,7 +121,9 @@ function load() {
} else { } else {
ls = tlView.config[i].data ls = tlView.config[i].data
for (var j = 0; j < ls.length; j++) { 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)
}
} }
} }
} }