|
@@ -203,10 +203,12 @@ export const getFuseImage = async (
|
|
newUrl = `/oss/scene_view_data/${num}/user/cad-style-3-${typeMap.sdk.Scene.floorId}.jpg`
|
|
newUrl = `/oss/scene_view_data/${num}/user/cad-style-3-${typeMap.sdk.Scene.floorId}.jpg`
|
|
// /oss/scene_view_data/YZL-jm-3EOpLfZxim9/user/cad-style-3.jpg
|
|
// /oss/scene_view_data/YZL-jm-3EOpLfZxim9/user/cad-style-3.jpg
|
|
let newBlob = await urlToBlob(newUrl)
|
|
let newBlob = await urlToBlob(newUrl)
|
|
- blob = await imageCropper({
|
|
|
|
- img: newBlob,
|
|
|
|
- fixed: [width, height]
|
|
|
|
- })
|
|
|
|
|
|
+ if(newBlob.type != 'text/html'){
|
|
|
|
+ blob = await imageCropper({
|
|
|
|
+ img: newBlob,
|
|
|
|
+ fixed: [width, height]
|
|
|
|
+ })
|
|
|
|
+ }
|
|
console.error("截图尺寸2", blob);
|
|
console.error("截图尺寸2", blob);
|
|
} else {
|
|
} else {
|
|
alert("暂未获取到平面图,请前往三维场景制作");
|
|
alert("暂未获取到平面图,请前往三维场景制作");
|