Przeglądaj źródła

fix: 修改类型声明

bill 2 tygodni temu
rodzic
commit
0a348f5ec2
2 zmienionych plików z 5 dodań i 5 usunięć
  1. 2 2
      src/views/scene/actions.vue
  2. 3 3
      src/views/scene/reassign.vue

+ 2 - 2
src/views/scene/actions.vue

@@ -89,7 +89,7 @@ const updateBimName = () => {
     async onSave(data) {
       await store.updateBimName(data.bimName)
     }
-  })
+  } as any)
 }
 
 const openReassign = () => {
@@ -100,6 +100,6 @@ const openReassign = () => {
       console.log(data, 888)
     },
     onCancel: () => {}
-  })
+  } as any)
 }
 </script>

+ 3 - 3
src/views/scene/reassign.vue

@@ -72,7 +72,7 @@
 </template>
 
 <script lang="ts" setup>
-import { ref, defineProps, reactive, computed, toRaw } from 'vue'
+import { ref, reactive, computed, toRaw } from 'vue'
 
 import type { ProjectScene } from '@/store'
 // import { ui18n } from '@/lang'
@@ -80,7 +80,7 @@ import type { ProjectScene } from '@/store'
 defineOptions({ name: 'Reassign' })
 
 const props = defineProps<{
-  visible?: boolean
+  visible: boolean
   scene: ProjectScene
   onSave: (data: any) => void
   onCancel: () => void
@@ -133,7 +133,7 @@ const handleOk = async () => {
   openReassignModal.value = false
 }
 
-const iframeRef = ref<HTMLIFrameElement>()
+const iframeRef = ref<any>()
 const handleLoad = () => {
   let timer = setInterval(() => {
     if (iframeRef.value?.contentWindow?.__sdk) {