threeWorld.ts 572 B

12345678910111213141516171819202122232425
  1. import { defineStore } from 'pinia'
  2. import { ref, watch } from "vue";
  3. export const threeWorld = defineStore('threeWorld', () => {
  4. /**
  5. * 统一放置全局用到的对象,变量等参数
  6. */
  7. const obj = ref({
  8. /**
  9. * 被操作的3d场景的对象,该参数在使用组件 src\components\meeting\3d\Edit3D.vue
  10. * 与自定义 :iframeId="'newIframe'" 传参名字一致即可
  11. * */
  12. newIframe : null,
  13. });
  14. const loadSuccess = ref(false);
  15. return {
  16. obj,
  17. loadSuccess
  18. }
  19. })