feat(docs): 自适应系统暗色主题+持久化
This commit is contained in:
@@ -60,8 +60,10 @@ const changeTheme = (theme: string) => {
|
||||
disableStyleSheetsProxy: false,
|
||||
}
|
||||
);
|
||||
localStorage.setItem('layui-vue-theme-dark','true')
|
||||
} else {
|
||||
disableDarkMode();
|
||||
localStorage.setItem('layui-vue-theme-dark','false')
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user