Selaa lähdekoodia

try fix picture problem

Arsekl 3 vuotta sitten
vanhempi
commit
3d9a0f1fbe
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/common/index.tsx

+ 1 - 1
src/common/index.tsx

@@ -14,7 +14,7 @@ export function transformToEditorTab(item: IFolderTreeNodeProps): IEditorTab {
             : [],
         renderPane: () => {
             return (
-                <img src={`data:image/png;base64${item.data.value}`}  alt={''}/>
+                <img src={`data:image/png;base64${btoa(item.data.value)}`}  alt={''}/>
             )
         }
     }