GuLiMmo
2023-12-05 c7c9de0214cb1e6ad3d29c8a3a0c7a8ea31fbaaa
src/pages/page-web/projects/devices.vue
@@ -279,7 +279,7 @@
}
type Pagination = TableState['pagination']
const workspaceId = computed(() => store.state.common.projectId)
const workspaceId = computed(() => store.state.common.projectId || localStorage.getItem(ELocalStorageKey.WorkspaceId))
const editableData: UnwrapRef<Record<string, Device>> = reactive({})
const current = ref([EDeviceTypeName.Aircraft])
@@ -314,8 +314,8 @@
      } else { // 终态:成功,失败,超时
        if (status === DeviceCmdExecuteStatus.Failed || status === DeviceCmdExecuteStatus.Timeout) {
          notification.error({
            message: `(${payload.sn}) Upgrade failed`,
            description: `Error Code: ${payload.result}`,
            message: `(${payload.sn}) 升级失败`,
            description: `错误码: ${payload.result}`,
            duration: null
          })
        }