代码优化
This commit is contained in:
parent
a80ee2ebea
commit
c94bffb217
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue