fix DateTime Parsing

This commit is contained in:
samisgod
2021-11-23 09:55:37 +08:00
parent 76859d54c1
commit 741d68ec59
3 changed files with 52 additions and 1 deletions

View File

@@ -186,12 +186,20 @@ export default {
if (this.form.{PrimaryKey} != undefined || this.title === '修改数据') {
update{ModelTypeName}(this.form).then((res) => {
if (!res.data) {
this.msgError("修改失败");
return;
}
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
add{ModelTypeName}(this.form).then((res) => {
if (!res.data) {
this.msgError("新增失败");
return;
}
this.msgSuccess("新增成功");
this.open = false;
this.getList();