代码优化
This commit is contained in:
parent
a80ee2ebea
commit
c94bffb217
|
|
@ -276,6 +276,13 @@ export default {
|
|||
},
|
||||
// 提交
|
||||
submit() {
|
||||
const isType = this.typeList.some((e) => e == this.IOTForm.iotType)
|
||||
if (isType) {
|
||||
this.$message.error(
|
||||
'当前机具已绑定改IOT类型设备,不可重复绑定!',
|
||||
)
|
||||
return
|
||||
}
|
||||
try {
|
||||
// 校验
|
||||
this.$refs.IOTForm.validate(async (valid) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue