(component): 优化 switch 渲染逻辑和 text 描述边距

This commit is contained in:
就眠儀式
2022-10-13 09:16:39 +08:00
parent 990bd4971c
commit cc21bb1785
3 changed files with 3 additions and 3 deletions

View File

@@ -55,7 +55,6 @@ const changeLocales = (lang: string, locales: any, merge: boolean) => {
};
const changeTheme = (theme: string) => {
const defaultPartial: Partial<Theme> = {
mode: 1,
brightness: 100,
@@ -71,7 +70,7 @@ const changeTheme = (theme: string) => {
disableStyleSheetsProxy: false,
ignoreInlineStyle: ignoreInlineStyle,
};
Object.assign(defaultPartial, props.darkPartial);
if (theme === "dark") {
if (window) {