fix: 修复机柜无法添加的问题

This commit is contained in:
chenjinsong
2021-06-01 17:53:24 +08:00
parent e503c9ab7a
commit bcbbc9455a

View File

@@ -72,7 +72,7 @@ export default {
this.prevent_opt.save = true
this.$refs.cabinetForm.validate(valid => {
if (valid) {
this.editCabinet.dcIds = this.currentDc.id
this.editCabinet.dcId = this.currentDc.id
if (this.editCabinet.id) {
this.$put('/dc/cabinet', this.editCabinet).then(res => {
this.prevent_opt.save = false