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