提交: 更新配置管理 新增修改提示

This commit is contained in:
23688nl 2022-09-23 15:10:26 +08:00
parent 1d2b284ea5
commit 60b3d4766b
1 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ export default {
if (valid) { if (valid) {
if (this.form.recordId != null) { if (this.form.recordId != null) {
updateAttribute(this.form).then((response) => { updateAttribute(this.form).then((response) => {
if (response.msg === '操作成功') { if (response.msg === 'ok') {
this.$store.dispatch("SetAttributeByKey", { this.$store.dispatch("SetAttributeByKey", {
[this.form.enterpriseAttribute]: this.form.attributeValue [this.form.enterpriseAttribute]: this.form.attributeValue
}) })
@ -263,7 +263,7 @@ export default {
}); });
} else { } else {
addAttribute(this.form).then((response) => { addAttribute(this.form).then((response) => {
if (response.msg === '操作成功') { if (response.msg === 'ok') {
this.$store.dispatch("SetAttributeByKey", { this.$store.dispatch("SetAttributeByKey", {
[this.form.enterpriseAttribute]: this.form.attributeValue [this.form.enterpriseAttribute]: this.form.attributeValue
}) })