Parcourir la source

打包图片是小问题

Zimo il y a 1 semaine
Parent
commit
950a77cbe5
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  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 {