123456789101112131415161718192021222324252627282930 |
- <template>
- <div>
- <router-view />
- </div>
- </template>
- <script setup lang="ts">
- import { handWs } from '@/utils/handWs'
- const router = useRouter();
- /**
- * 手势
- */
- const getHandWs = () => {
- //加载手势WS
- handWs((e: any) => {
- // console.log("eeee", e)
- //刷新
- if (e?.data?.result == "refresh") {
- router.push({ path: '/gesture' });
- //刷新
- window.location.reload()
- }
- });
- };
- getHandWs()
- </script>
- <style scoped></style>
|