浏览代码

fix:3d_缩略图问题

ananzhusen 1 年之前
父节点
当前提交
e0eaf77809
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      src/views/components/Graphics.vue

+ 1 - 5
src/views/components/Graphics.vue

@@ -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',