[AI Generated]: refactor(Comp): 重写 OTA 升级逻辑,改为自动触发、修正回调字段为 isFailed 布尔值、成功失败后统一跳回首页
This commit is contained in:
@@ -17,6 +17,6 @@
|
||||
<view class="progress-text">{{otaProgress}}%</view>
|
||||
</view>
|
||||
|
||||
<view class="btn" bind:tap="bindOk">完成</view>
|
||||
<view class="ota" bind:tap="updateOta">OTA升级</view>
|
||||
</view>
|
||||
<!-- 成功或失败后才展示完成按钮 -->
|
||||
<view wx:if="{{otaStatus === 'success' || otaStatus === 'failed'}}" class="btn" bind:tap="bindOk">完成</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user