diff --git a/frontend/src/views/switchQuantity/index.vue b/frontend/src/views/switchQuantity/index.vue index f073f1a..44e1652 100644 --- a/frontend/src/views/switchQuantity/index.vue +++ b/frontend/src/views/switchQuantity/index.vue @@ -62,7 +62,7 @@ function outputChange(item:any,index:any){ type: 'warning' }).then(() => { controlSwitch(index + 1, item ? 0 : 1).then(res => { - if (res.data.control_status === '执行成功') { + if (res.data) { ElMessage.success('操作成功') } else {