Add dark mode support (#16)

This commit is contained in:
AceDataCloud committed 2024-04-04 18:12:31 +00:00
1 parent ddef4cec2a
commit b8970e1373
46 files changed
+247 -166

No files matched your search

+5
View File
@@ -25,6 +25,10 @@ export const setToken = ({ commit }: ActionContext<IRootState, IRootState>, payl
commit('setToken', payload);
};
export const setDark = ({ commit }: ActionContext<IRootState, IRootState>, payload: boolean) => {
commit('setDark', payload);
};
export const setLocale = ({ commit }: ActionContext<IRootState, IRootState>, payload: string) => {
commit('setLocale', payload);
};
@@ -63,6 +67,7 @@ export default {
resetUser,
resetSetting,
setToken,
setDark,
setUser,
getToken,
getUser