打开后置相机拍照
Installation
yarn add --dev @dfeidao/fd-am000070
Example
import am70 from '@dfeidao/fd-am000070';
import am74 from '@dfeidao/fd-am000074';
import IFeidaoAiMobile from '@dfeidao/fd-am000000';
export default async function a001(fd: IFeidaoAiMobile) {
try {
const a = await am70();
//todo
await am74(a.path); // 清除文件
} catch (error) {
console.log(error.message);
}
}