修改server 模块,新增/修改的提示信息
This commit is contained in:
parent
f4292bad10
commit
5365c497e6
|
@ -273,7 +273,6 @@ export default {
|
|||
onSave() {
|
||||
this.form.validateFields((err, values) => {
|
||||
if (!err) {
|
||||
console.log('Received values of form: ', values);
|
||||
if (this.isAdd) {
|
||||
postAction("/sysServer/create", values).then(res => {
|
||||
if (res.success) {
|
||||
|
@ -282,7 +281,7 @@ export default {
|
|||
this.$message.success("success")
|
||||
this.getSysServer()
|
||||
} else {
|
||||
this.$message.warning("This operation fails. Contact your system administrator")
|
||||
this.$message.info(res.result.message)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
|
@ -297,7 +296,7 @@ export default {
|
|||
this.$message.success("success")
|
||||
this.getSysServer()
|
||||
} else {
|
||||
this.$message.warning("This operation fails. Contact your system administrator")
|
||||
this.$message.info(res.result.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user