fix
This commit is contained in:
@@ -86,9 +86,11 @@ const {} = toRefs(data);
|
|||||||
</template>
|
</template>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.modalDetail{
|
.modalDetail{
|
||||||
width: 100%;
|
width: 22rem;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
> .title{
|
> .title{
|
||||||
margin: 2.4rem 0;
|
margin: 2.4rem 0;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { ref, onMounted, onUnmounted, reactive, toRefs } from "vue";
|
|||||||
import threeGlb from '@/assets/images/three/sample.glb'
|
import threeGlb from '@/assets/images/three/sample.glb'
|
||||||
import { uploadImage } from '@/api/upload'
|
import { uploadImage } from '@/api/upload'
|
||||||
import { base64Tofile } from '@/components/Canvas/tools/tools'
|
import { base64Tofile } from '@/components/Canvas/tools/tools'
|
||||||
|
import { ElMessage } from 'element-plus'
|
||||||
|
|
||||||
import model from './model.vue'
|
import model from './model.vue'
|
||||||
import detail from './detail.vue'
|
import detail from './detail.vue'
|
||||||
@@ -27,6 +28,8 @@ const captureView = async ()=>{
|
|||||||
const formData = new FormData()
|
const formData = new FormData()
|
||||||
formData.append('file', file)
|
formData.append('file', file)
|
||||||
const minioUrl = await uploadImage(formData, true)
|
const minioUrl = await uploadImage(formData, true)
|
||||||
|
ElMessage.warning('Your new view has been captured.')
|
||||||
|
|
||||||
emit('captureView', {
|
emit('captureView', {
|
||||||
minioUrl,
|
minioUrl,
|
||||||
nodeId: props?.currentData?.nodeId
|
nodeId: props?.currentData?.nodeId
|
||||||
@@ -64,8 +67,10 @@ const {} = toRefs(data);
|
|||||||
width: 65.5rem;
|
width: 65.5rem;
|
||||||
}
|
}
|
||||||
> .detailBox{
|
> .detailBox{
|
||||||
width: 22rem;
|
flex: 1;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -272,7 +272,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
threeModelRef.value.close()
|
// threeModelRef.value.close()
|
||||||
}
|
}
|
||||||
provide('openImagePreview', openImagePreview)
|
provide('openImagePreview', openImagePreview)
|
||||||
provide('openThreeModelPreview', openThreeModelPreview)
|
provide('openThreeModelPreview', openThreeModelPreview)
|
||||||
|
|||||||
Reference in New Issue
Block a user