Merge pull request #1622 from yanCode/fix/single-mask-import

fix: allow to import a single mask
This commit is contained in:
Yifei Zhang
2023-05-19 10:57:37 +08:00
committed by GitHub

View File

@@ -256,6 +256,11 @@ export function MaskPage() {
maskStore.create(mask);
}
}
return;
}
//if the content is a single mask.
if (importMasks.name) {
maskStore.create(importMasks);
}
} catch {}
});