12345678910111213141516171819202122232425 |
- import { defineStore } from 'pinia'
- import { ref, watch } from "vue";
- export const threeWorld = defineStore('threeWorld', () => {
- /**
- * 统一放置全局用到的对象,变量等参数
- */
- const obj = ref({
- /**
- * 被操作的3d场景的对象,该参数在使用组件 src\components\meeting\3d\Edit3D.vue
- * 与自定义 :iframeId="'newIframe'" 传参名字一致即可
- * */
- newIframe : null,
-
- });
-
- const loadSuccess = ref(false);
- return {
- obj,
- loadSuccess
- }
- })
|