diff --git a/base-vue/src/views/modules/sys/dict-add-or-update.vue b/base-vue/src/views/modules/sys/dict-add-or-update.vue index ecb7e8a..f65b5ae 100644 --- a/base-vue/src/views/modules/sys/dict-add-or-update.vue +++ b/base-vue/src/views/modules/sys/dict-add-or-update.vue @@ -51,7 +51,7 @@ if (valid) { this.$http({ url: this.$http.adornUrl('/api/dict'), - method: !this.dataForm.dict_id ? 'put' :'post', + method: this.dataForm.dict_id !== null ? 'put' :'post', data: this.$http.adornData(this.dataForm) }).then(({data}) => { if (data && data.code === 200) {