@@ -686,6 +686,8 @@ this.postOptions.push(...response.data);
}).catch((err) => {
this.$message.error(err);
console.log('err~~~', err);
+ // 重新抛出错误,确保校验失败时阻止提交
+ throw err;
});
},