mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2026-02-26 15:40:27 +00:00
14 lines
277 B
TypeScript
14 lines
277 B
TypeScript
import { useEventListener } from "@vueuse/core";
|
|
import { useStore } from "../store";
|
|
|
|
function update() {
|
|
const { app } = useStore();
|
|
app.setBrowser();
|
|
app.isFold = app.browser.isMini;
|
|
}
|
|
|
|
export function resize() {
|
|
useEventListener(window, "resize", update);
|
|
update();
|
|
}
|