layui/.svn/pristine/f5/f5d149547eb35e6a1c5ea418438cd3b9470e4143.svn-base
2022-12-09 16:41:41 +08:00

42 lines
1.0 KiB
Plaintext

import { defineStore } from "pinia";
export const useAppStore = defineStore({
id: "app",
state: () => {
return {
theme: "light",
themeVariable: {
"--global-primary-color": "#009688",
"--global-normal-color": "#1e9fff",
"--global-warm-color": "#ffb800",
"--global-danger-color": "#ff5722",
"--global-checked-color": "#5fb878",
"--global-border-radius": "2px",
"--global-neutral-color-1": "#FAFAFA",
"--global-neutral-color-2": "#F6F6F6",
"--global-neutral-color-3": "#eeeeee",
"--global-neutral-color-4": "#e2e2e2",
"--global-neutral-color-5": "#dddddd",
"--global-neutral-color-6": "#d2d2d2",
"--global-neutral-color-7": "#cccccc",
"--global-neutral-color-8": "#c2c2c2",
},
};
},
getters: {},
actions: {},
persist: {
enabled: true,
strategies: [
{
key: "theme",
storage: localStorage,
},
{
key: "themeVariable",
storage: localStorage,
},
],
},
});