Feat(StoreCard): Support emulator
Support run tool by emulator
This commit is contained in:
@@ -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')
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user