修改ip
This commit is contained in:
@ -101,14 +101,9 @@
|
|||||||
ref="imageRef"
|
ref="imageRef"
|
||||||
fit="contain"
|
fit="contain"
|
||||||
:preview-teleported="true"
|
:preview-teleported="true"
|
||||||
:preview-src-list="
|
:preview-src-list="modelList.map((item: any) => service + item.iconDataUrl)"
|
||||||
modelList.map((item: any) => 'http://127.0.0.1:8848' + item.iconDataUrl)
|
|
||||||
"
|
|
||||||
style="width: 80px; height: 60px"
|
style="width: 80px; height: 60px"
|
||||||
:src="
|
:src="service + item.iconDataUrl"
|
||||||
'http://127.0.0.1:8848' +
|
|
||||||
'/iconLibrary/data/icon/f492f933485049358d11efffc611d89d/png'
|
|
||||||
"
|
|
||||||
:initial-index="currentIndex"
|
:initial-index="currentIndex"
|
||||||
@click="seeBigPhoto($index)"
|
@click="seeBigPhoto($index)"
|
||||||
/>
|
/>
|
||||||
@ -198,6 +193,7 @@ const fs = require('fs')
|
|||||||
const eventBus: any = inject('bus')
|
const eventBus: any = inject('bus')
|
||||||
const imageRef: any = ref('')
|
const imageRef: any = ref('')
|
||||||
var clickTreeNode: any = reactive({})
|
var clickTreeNode: any = reactive({})
|
||||||
|
const service = ref(localStorage.getItem('service'))
|
||||||
|
|
||||||
interface TypeNode {
|
interface TypeNode {
|
||||||
id: string
|
id: string
|
||||||
|
|||||||
@ -45,6 +45,7 @@ const eventBus: any = inject('bus')
|
|||||||
const viewPointHeight: any = ref(1.8)
|
const viewPointHeight: any = ref(1.8)
|
||||||
var rowData: any = reactive([])
|
var rowData: any = reactive([])
|
||||||
var imageData: any = ref(null)
|
var imageData: any = ref(null)
|
||||||
|
const service = ref(localStorage.getItem('service'))
|
||||||
// var newData: any = reactive({
|
// var newData: any = reactive({
|
||||||
// name: ''
|
// name: ''
|
||||||
// })
|
// })
|
||||||
@ -114,7 +115,7 @@ const initThreeJS = () => {
|
|||||||
const loadModel = () => {
|
const loadModel = () => {
|
||||||
const loader = new GLTFLoader()
|
const loader = new GLTFLoader()
|
||||||
loader.load(
|
loader.load(
|
||||||
'http://127.0.0.1:8848' + rowData.modelDataUrl, // 模型路径
|
service.value + rowData.modelDataUrl, // 模型路径
|
||||||
function (gltf) {
|
function (gltf) {
|
||||||
// onLoad回调函数
|
// onLoad回调函数
|
||||||
model = gltf.scene
|
model = gltf.scene
|
||||||
|
|||||||
Reference in New Issue
Block a user