Skip to content

Commit 13024d9

Browse files
committed
主题默认Null的问题修复
1 parent 4339e50 commit 13024d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ui-src/src/App.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ execCmd('settings get secure ui_night_mode').then(v => {
5252
}else if(v=='2'){
5353
theme.value=false;
5454
}
55+
// 返回值竟然有null
56+
if(v==null){
57+
theme.value=false;
58+
}
5559
localStorage.setItem('theme',theme.value)
5660
});
5761
const cacheTheme=localStorage.getItem('theme');

0 commit comments

Comments
 (0)