2022-04-13 01:42:46 +08:00

15 lines
268 B
TypeScript

import store from "store";
import { App } from "vue";
import { setTheme } from "./utils";
import "./static/css/index.scss";
export default {
install(_: App, options: any) {
const theme = store.get("theme") || options;
if (theme) {
setTheme(theme);
}
}
};