소스 검색

fix: mask download not working

Zhenyu Zhu 1 년 전
부모
커밋
ba0753c418
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      app/components/mask.tsx

+ 3 - 0
app/components/mask.tsx

@@ -368,6 +368,9 @@ export function MaskPage() {
                 text={Locale.Mask.EditModal.Download}
                 key="export"
                 bordered
+                onClick={() =>
+                  downloadAs(JSON.stringify(editingMask), "mask.json")
+                }
               />,
               <IconButton
                 key="copy"