|
@@ -1142,6 +1142,7 @@ const dragStart = async (event: DragEvent | MouseEvent|TouchEvent, item: any) =>
|
|
|
_id: 1,
|
|
|
name: 1,
|
|
|
});
|
|
|
+ let iframe = (location.host.indexOf('.le5le')!==-1? 'https://view.le5le.com/3d?id=' :(location.origin+'/view/3d/?id=')) + (item.id || item._id)
|
|
|
data = {
|
|
|
name: 'iframe',
|
|
|
x: 0,
|
|
@@ -1161,7 +1162,7 @@ const dragStart = async (event: DragEvent | MouseEvent|TouchEvent, item: any) =>
|
|
|
height: meta2d.store.data.height || meta2d.store.options.height,
|
|
|
externElement: true,
|
|
|
thumbImg: res.image,
|
|
|
- iframe: location.origin+'/view/3d/?id=' + (item.id || item._id),
|
|
|
+ iframe,
|
|
|
};
|
|
|
} else if (item.component) {
|
|
|
// 默认
|