ci: 集成 pinia 提供主题持久化

This commit is contained in:
就眠儀式
2022-04-06 00:21:26 +08:00
parent e77738e974
commit 0f7d25bc09
8 changed files with 127 additions and 63 deletions

View File

@@ -58,10 +58,8 @@ const changeTheme = (theme: string) => {
disableStyleSheetsProxy: false,
}
);
localStorage.setItem("layui-vue-theme-dark", "true");
} else {
disableDarkMode();
localStorage.setItem("layui-vue-theme-dark", "false");
}
};