1.新增消防器材没有undefined判断

dev^2
guoyuepeng 2025-03-06 11:43:51 +08:00
parent 9aa5cdc660
commit 717c47d059
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ export default {
}
this.$refs.form.validate(valid => {
if (valid) {
if (this.$parent.FIRE_DEVICE_ID === '') {
if (this.$parent.FIRE_DEVICE_ID === '' || this.$parent.FIRE_DEVICE_ID === undefined) {
this.handleAdd()
} else {
this.handleUpdate()