mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-17 09:12:51 +00:00
15 lines
268 B
TypeScript
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);
|
|
}
|
|
}
|
|
};
|