修改3d节点下载为glb文件
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# VITE_APP_URL = http://192.168.31.82:8771
|
# VITE_APP_URL = http://192.168.31.82:8771
|
||||||
VITE_APP_URL = http://18.167.251.121:10015
|
VITE_APP_URL = http://18.167.251.121:10015
|
||||||
# VITE_APP_URL = http://192.168.31.118:8080
|
# VITE_APP_URL = http://192.168.31.118:8080
|
||||||
VITE_APP_URL = http://192.168.31.82:8755
|
# VITE_APP_URL = http://192.168.31.82:8755
|
||||||
VITE_GOOGLE_CLIENT_ID = 216037134725-7q8vqp0ohtmohlosltkfg7bd2v29rm5a.apps.googleusercontent.com
|
VITE_GOOGLE_CLIENT_ID = 216037134725-7q8vqp0ohtmohlosltkfg7bd2v29rm5a.apps.googleusercontent.com
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<span class="icon" @click="onPreview(item)">
|
<span class="icon" @click="onPreview(item)">
|
||||||
<svg-icon name="expand-lg" size="20" size-unit="px" />
|
<svg-icon name="expand-lg" size="20" size-unit="px" />
|
||||||
</span>
|
</span>
|
||||||
<span class="icon" @click="onDownload(item?.url)">
|
<span class="icon" @click="onDownload(item)">
|
||||||
<svg-icon name="download" size="20" size-unit="px" />
|
<svg-icon name="download" size="20" size-unit="px" />
|
||||||
</span>
|
</span>
|
||||||
<button class="edit" @click="onEdit(item)">
|
<button class="edit" @click="onEdit(item)">
|
||||||
@@ -190,8 +190,12 @@
|
|||||||
openImagePreview(item.url)
|
openImagePreview(item.url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const onDownload = (url: string) => {
|
const onDownload = (item: any) => {
|
||||||
downloadImage(url, 'image.png')
|
if(data.superiorNodeType == NODE_DATATYPE.TO_3D_MODEL){
|
||||||
|
if(item?.glbPath)downloadImage(item.glbPath, 'model.glb')
|
||||||
|
}else{
|
||||||
|
downloadImage(item.url, 'image.png')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const onMenuItem = (v) => {
|
const onMenuItem = (v) => {
|
||||||
if (v.disabled) return
|
if (v.disabled) return
|
||||||
|
|||||||
Reference in New Issue
Block a user