fix getting image mount status

This commit is contained in:
wj-xiao
2024-08-22 15:13:47 +08:00
parent ea39c024ac
commit 8067a0e348
2 changed files with 2 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ export const Images = ({ setIsMounted }: ImagesProps) => {
if (rsp.code !== 0) return;
const file = rsp.data?.file;
setMountedImage(file);
setIsMounted(!!file);
} catch (e) {
console.log(e);

View File

@@ -53,6 +53,7 @@ export const Images = ({ setIsMounted }: ImagesProps) => {
if (rsp.code !== 0) return;
const file = rsp.data?.file;
setMountedImage(file);
setIsMounted(!!file);
} catch (e) {
console.log(e);