File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import type { ToastPostion } from ' @aminnausin/cedar-ui' ;
33
4- import { onMounted , onUnmounted , ref } from ' vue' ;
54import { DrawerController } from ' ./components/cedar-ui/drawer' ;
65import { ToastController } from ' @/components/cedar-ui/toast' ;
6+ import { onMounted , ref } from ' vue' ;
77import { useFullscreen } from ' @/composables/useFullscreen' ;
88import { getScreenSize } from ' @/service/util' ;
99import { useAuthStore } from ' @/stores/AuthStore' ;
@@ -28,12 +28,6 @@ onMounted(async () => {
2828
2929 toastPosition .value = getScreenSize () === ' default' ? ' top-center' : ' bottom-left' ;
3030 loadUser ();
31-
32- window .addEventListener (' focus' , loadUser );
33- });
34-
35- onUnmounted (() => {
36- window .removeEventListener (' focus' , loadUser );
3731});
3832 </script >
3933
You can’t perform that action at this time.
0 commit comments