This commit is contained in:
2025-09-30 17:19:37 +08:00
parent 32e73996ac
commit dfc8619bf5
2 changed files with 5 additions and 8 deletions

View File

@ -101,14 +101,9 @@
ref="imageRef"
fit="contain"
:preview-teleported="true"
:preview-src-list="
modelList.map((item: any) => 'http://127.0.0.1:8848' + item.iconDataUrl)
"
:preview-src-list="modelList.map((item: any) => service + item.iconDataUrl)"
style="width: 80px; height: 60px"
:src="
'http://127.0.0.1:8848' +
'/iconLibrary/data/icon/f492f933485049358d11efffc611d89d/png'
"
:src="service + item.iconDataUrl"
:initial-index="currentIndex"
@click="seeBigPhoto($index)"
/>
@ -198,6 +193,7 @@ const fs = require('fs')
const eventBus: any = inject('bus')
const imageRef: any = ref('')
var clickTreeNode: any = reactive({})
const service = ref(localStorage.getItem('service'))
interface TypeNode {
id: string

View File

@ -45,6 +45,7 @@ const eventBus: any = inject('bus')
const viewPointHeight: any = ref(1.8)
var rowData: any = reactive([])
var imageData: any = ref(null)
const service = ref(localStorage.getItem('service'))
// var newData: any = reactive({
// name: ''
// })
@ -114,7 +115,7 @@ const initThreeJS = () => {
const loadModel = () => {
const loader = new GLTFLoader()
loader.load(
'http://127.0.0.1:8848' + rowData.modelDataUrl, // 模型路径
service.value + rowData.modelDataUrl, // 模型路径
function (gltf) {
// onLoad回调函数
model = gltf.scene