wujingjing
2025-03-14 4e57cc40899cb6dcaeec1eda0a2325a74e44f9db
src/stores/chatRoom.ts
@@ -9,6 +9,7 @@
import emitter from '../utils/mitt';
import { gotoRoute } from '../utils/route';
import { Local, LocalPlus } from '../utils/storage';
import { getCurrentPosition } from '../utils/brower';
/**
 * Room 关联的一些配置
@@ -83,10 +84,7 @@
// 主场景 列表
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([]);
@@ -280,3 +278,11 @@
};
export const currentPosition = ref<Position>(null);
export const getGlobalPosition = () => {
   getCurrentPosition();
   setInterval(() => {
      getCurrentPosition();
   }, 1000 * 60 * 60);
};