fix: network_status
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 46s

This commit is contained in:
sexygoat
2026-04-15 16:41:36 +08:00
parent 9797de4202
commit 9c5778b706
2 changed files with 4 additions and 4 deletions

View File

@@ -14,8 +14,8 @@
<view v-if="isDevice" class="tag-apple" :class="onlineStatus === '在线' ? 'tag-success' : 'tag-warning'">
{{ onlineStatus }}
</view>
<view v-else class="tag-apple">
{{ onlineStatus }}
<view v-else class="tag-apple" :class="networkStatus == 1 ? 'tag-success' : 'tag-warning'">
{{ networkStatus == 1 ? '正常' : '停机' }}
</view>
</view>
</view>
@@ -31,6 +31,7 @@
currentCardNo: { type: String, default: '' },
deviceInfo: { type: Object, default: () => ({}) },
onlineStatus: { type: String, default: '离线' },
networkStatus: { type: String, default: '离线' },
isDevice: { type: Boolean, default: true }
});