代码优化

This commit is contained in:
BianLzhaoMin 2024-08-09 17:07:44 +08:00
parent a80ee2ebea
commit c94bffb217
1 changed files with 7 additions and 0 deletions

View File

@ -276,6 +276,13 @@ export default {
}, },
// //
submit() { submit() {
const isType = this.typeList.some((e) => e == this.IOTForm.iotType)
if (isType) {
this.$message.error(
'当前机具已绑定改IOT类型设备不可重复绑定',
)
return
}
try { try {
// //
this.$refs.IOTForm.validate(async (valid) => { this.$refs.IOTForm.validate(async (valid) => {