| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <script setup lang="ts">
- import { ElConfigProvider, ElMessage } from 'element-plus';
- import zhCn from 'element-plus/lib/locale/lang/zh-cn'
- // 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>
- <el-config-provider :locale="zhCn" :message="{max: 1}">
- <router-view v-slot="{ Component }">
- <component :is="Component" />
- </router-view>
- </el-config-provider>
- </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>
|