| | |
| | | import emitter from '../utils/mitt'; |
| | | import { gotoRoute } from '../utils/route'; |
| | | import { Local, LocalPlus } from '../utils/storage'; |
| | | import { getCurrentPosition } from '../utils/brower'; |
| | | |
| | | /** |
| | | * Room 关联的一些配置 |
| | |
| | | // 主场景 列表 |
| | | export const sceneGroupList = ref([]); |
| | | // groupType 列表 |
| | | export const groupTypeList = computed(() => |
| | | Array.from(new Set(sceneGroupList.value.map((item) => item.group_type))) |
| | | |
| | | ); |
| | | export const groupTypeList = computed(() => Array.from(new Set(sceneGroupList.value.map((item) => item.group_type)))); |
| | | // 办公/模板 列表 |
| | | export const exampleSceneList = ref([]); |
| | | export const officeList = ref([]); |
| | |
| | | }; |
| | | |
| | | export const currentPosition = ref<Position>(null); |
| | | |
| | | export const getGlobalPosition = () => { |
| | | getCurrentPosition(); |
| | | |
| | | setInterval(() => { |
| | | getCurrentPosition(); |
| | | }, 1000 * 60 * 60); |
| | | }; |