diff --git a/src/views/weightManage/index.vue b/src/views/weightManage/index.vue index 1420c78..3f7d71e 100644 --- a/src/views/weightManage/index.vue +++ b/src/views/weightManage/index.vue @@ -782,11 +782,8 @@ const handleNext = async () => { } // 调用后端接口获取比对结果 - vmSend(materialCode).then((res) => { - if (res.code === '0') { - compareMatchResult.value = JSON.parse(res.data?.matchResult || '') - } - }) + const res = vmSend(materialCode); + compareMatchResult.value = res.data || ''; if (compareMatchResult.value === 'success') { // 比对成功,按钮变为下一步