fix : 更改参数格式

This commit is contained in:
likexuan
2022-11-23 15:38:56 +08:00
parent 707ec2680d
commit e844f1669c
2 changed files with 2 additions and 7 deletions

View File

@@ -1109,9 +1109,7 @@ export default {
}
if (valid) {
this.prevent_opt.save = true
if (Number(this.editModule.panelId) !== 0) {
params.panelId = Number(this.editModule.panelId)
}
params.panelId = this.editModule.panelId !== '' ? Number(this.editModule.panelId) : null
if (this.editModule.id) {
this.$put('monitor/module', params).then(response => {
if (response.code === 200) {