This commit is contained in:
2025-09-30 17:16:31 +08:00
parent c975d709e8
commit 32e73996ac
4 changed files with 13 additions and 15 deletions

View File

@ -77,11 +77,7 @@
@click="modelClick(mIndex, model)"
>
<div class="imgbg">
<el-image
:src="'http://127.0.0.1:8848' + model.posterDataUrl"
fit="contain"
class="thumbnail"
>
<el-image :src="service + model.posterDataUrl" fit="contain" class="thumbnail">
<template #error>
<div class="image-error">加载失败</div>
</template>
@ -126,6 +122,8 @@ const eventBus: any = inject('bus')
var modelName = ref('')
var clickTreeNode: any = ref('')
const service = ref(localStorage.getItem('service'))
//tab
interface Model {
id: string
@ -296,7 +294,7 @@ const modelClick = (index, row) => {
typeof selectCallback === 'function' &&
addType.value === 'trajectoryMotion'
) {
selectCallback('http://127.0.0.1:8848' + row.modelDataUrl)
selectCallback(service.value + row.modelDataUrl)
close()
return
}
@ -314,7 +312,7 @@ const modelClick = (index, row) => {
id: id,
type: typeArr[isSetting.key],
spacing: isSetting['value'] * 1,
url: 'http://127.0.0.1:8848' + isSetting[row.modelDataUrl]
url: service.value + isSetting[row.modelDataUrl]
},
function (data) {
// posiArr.forEach((item, index) => {
@ -351,7 +349,7 @@ const renderModel = async (data, model) => {
name: model.modelName + index,
show: true,
scale: { x: 1, y: 1, z: 1 },
url: 'http://127.0.0.1:8848' + model.modelDataUrl,
url: service.value + model.modelDataUrl,
maximumScale: 1,
// host: 'http://127.0.0.1:8848',
rotate: {