fix: 修复i18n创建/修改国际化时报错未提示的问题
This commit is contained in:
@@ -112,6 +112,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.error(res.data.message)
|
this.$message.error(res.data.message)
|
||||||
}
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
this.blockOperation.save = false
|
||||||
|
this.$message.error(this.errorMsgHandler(e))
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
axios.post(this.url, this.editObject).then(res => {
|
axios.post(this.url, this.editObject).then(res => {
|
||||||
@@ -122,6 +125,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.error(res.data.message)
|
this.$message.error(res.data.message)
|
||||||
}
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
this.blockOperation.save = false
|
||||||
|
this.$message.error(this.errorMsgHandler(e))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user