<script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
import qs from 'query-string'
const parseSearch: any = qs.parse(location.search)
const hashSearch = location.href.split('#/')[1]
const hashParams = qs.parse(hashSearch.split('?')[1])
const roomUid: string = parseSearch.roomUid || hashParams.roomUid || ''
// 如果房间号的值时则替换
if(roomUid) {
  sessionStorage.setItem('roomUid', roomUid)
}
</script>

<template>
  <router-view v-slot="{ Component }">
    <component :is="Component" />
  </router-view>
</template>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  // text-align: center;
  color: #2c3e50;
}

* {
  margin: 0;
  padding: 0;
  touch-action: none !important;
}
[v-cloak] {
  display: none !important;
}
body {
  background-color: #eef4f9 !important;
}

::-webkit-scrollbar {
  width: 8px; /* 纵向滚动条*/
  height: 8px; /* 横向滚动条 */
  background-color: #fff;
}

/*定义滚动条轨道 内阴影*/
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 8px rgba(0, 0, 0, 0);
  background-color: #fff;
}

/*定义滑块 内阴影*/
::-webkit-scrollbar-thumb {
  -webkit-box-shadow: inset 0 0 8px rgba(0, 0, 0, 0);
  background-color: #d5d5d5;
}

</style>
