fix: allow to import a single mask

This commit is contained in:
ShengYan, Zhang 2023-05-19 10:39:34 +08:00
parent 48f25b0799
commit f6c268dc1e
1 changed files with 5 additions and 0 deletions

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 {}
});