|
@@ -1137,11 +1137,7 @@ const dragStart = async (event: DragEvent | MouseEvent|TouchEvent, item: any) =>
|
|
data = item.data || item;
|
|
data = item.data || item;
|
|
dropped =true;
|
|
dropped =true;
|
|
} else if (item['3d']) {
|
|
} else if (item['3d']) {
|
|
- const res: any = await getLe5le3d(item.id || item._id, {
|
|
|
|
- image: 1,
|
|
|
|
- _id: 1,
|
|
|
|
- name: 1,
|
|
|
|
- });
|
|
|
|
|
|
+ const res: any = await getLe5le3d(item.id || item._id, "id, name, image");
|
|
let iframe = (location.host.indexOf('.le5le')!==-1? 'https://view.le5le.com/3d?id=' :(location.origin+'/view/3d/?id=')) + (item.id || item._id)
|
|
let iframe = (location.host.indexOf('.le5le')!==-1? 'https://view.le5le.com/3d?id=' :(location.origin+'/view/3d/?id=')) + (item.id || item._id)
|
|
data = {
|
|
data = {
|
|
name: 'iframe',
|
|
name: 'iframe',
|