Feat(StoreCard): Support emulator

Support run tool by emulator
This commit is contained in:
2024-05-01 18:35:12 +08:00
parent de9d1b4b74
commit 5a028a8259

View File

@@ -74,7 +74,7 @@ const StoreCard = ({
return return
} }
if (platform === 'ANDROID') { if (platform === 'ANDROID') {
void modal.info({ void modal.confirm({
icon: <Icon style={{ color: COLOR_MAIN }} component={IconOxygenInfo} />, icon: <Icon style={{ color: COLOR_MAIN }} component={IconOxygenInfo} />,
title: 'Android 端', title: 'Android 端',
centered: true, centered: true,
@@ -87,7 +87,12 @@ const StoreCard = ({
/> />
<AntdTag className={'tag'}>使</AntdTag> <AntdTag className={'tag'}>使</AntdTag>
</FlexBox> </FlexBox>
) ),
okText: '确定',
cancelText: '模拟器',
onCancel() {
navigateToView(navigate, author.username, toolId, platform)
}
}) })
return return
} }
@@ -141,7 +146,7 @@ const StoreCard = ({
const handleOnAndroidBtnClick = (e: MouseEvent<HTMLDivElement>) => { const handleOnAndroidBtnClick = (e: MouseEvent<HTMLDivElement>) => {
e.stopPropagation() e.stopPropagation()
void modal.info({ void modal.confirm({
icon: <Icon style={{ color: COLOR_MAIN }} component={IconOxygenInfo} />, icon: <Icon style={{ color: COLOR_MAIN }} component={IconOxygenInfo} />,
title: 'Android 端', title: 'Android 端',
centered: true, centered: true,
@@ -154,7 +159,12 @@ const StoreCard = ({
/> />
<AntdTag className={'tag'}>使</AntdTag> <AntdTag className={'tag'}>使</AntdTag>
</FlexBox> </FlexBox>
) ),
okText: '确定',
cancelText: '模拟器',
onCancel() {
navigateToView(navigate, author.username, toolId, 'ANDROID')
}
}) })
} }