Browse Source

打包图片是小问题

Zimo 1 tuần trước cách đây
mục cha
commit
950a77cbe5
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      src/components/mt-edit/composables/index.ts

+ 5 - 1
src/components/mt-edit/composables/index.ts

@@ -87,7 +87,11 @@ export const useExportJsonToDoneJson = (json: IExportJson) => {
     return {
       ...m,
       props,
-      symbol
+      symbol,
+      thumbnail:
+        m.type === 'img' && find_item?.type === 'img' && find_item.thumbnail
+          ? find_item.thumbnail
+          : m.thumbnail
     }
   })
   return {