Explorar el Código

打包图片是小问题

Zimo hace 1 semana
padre
commit
950a77cbe5
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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 {