Browse Source

公共的 window-size.js

DESKTOP-MINPJAU\Administrator 3 years ago
parent
commit
ef163984c9
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/utils/window-size.js

+ 5 - 0
src/utils/window-size.js

@@ -0,0 +1,5 @@
+import store from "@/store";
+
+export const getWindowSize = computed(() => {
+    return store.state.app.windowSize
+})