复机实名校验提示适配
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m41s

This commit is contained in:
luo
2026-07-21 14:30:30 +08:00
parent 6febc66eca
commit 47a2d88c9d
8 changed files with 172 additions and 6 deletions

View File

@@ -20,6 +20,7 @@
v-model:polling-enabled="pollingEnabled"
:realtime-loading="realtimeLoading"
:start-disabled="startDisabled"
:start-error-message="startFailureMessage"
:stop-disabled="stopDisabled"
:start-remaining-text="startRemainingText"
:stop-remaining-text="stopRemainingText"
@@ -258,6 +259,7 @@
// ========== 资产操作方法(使用 composable ==========
const {
enableCardLoading,
startFailureMessage,
disableCardLoading,
enableCard: enableCardOp,
disableCard: disableCardOp,
@@ -399,6 +401,7 @@
const handleSearch = async ({ identifier }: { identifier: string }) => {
// 更新搜索框的值
assetSearchCardRef.value?.updateSearchValue(identifier)
startFailureMessage.value = ''
// fetchAssetDetail 内部已经会并行加载所有相关数据,不需要重复调用
await fetchAssetDetail(identifier)
@@ -458,7 +461,10 @@
const handleEnableCard = async () => {
if (startDisabled.value) return
try {
await enableCardOp()
const started = await enableCardOp()
if (started && cardInfo.value) {
await fetchAssetDetail(cardInfo.value.identifier)
}
} finally {
updateRateLimitNow()
}