代码生成前端页面错误修复

This commit is contained in:
yxh
2020-08-25 18:14:25 +08:00
parent 77b315300c
commit f6620c08d8
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -383,7 +383,7 @@ export default {
{{end}}
if (this.form.{{$pkColumnName}} != null) {
update{{.table.BusinessName|UcFirst}}(this.form).then(response => {
if (response.code === 200) {
if (response.code === 0) {
this.msgSuccess("修改成功");
this.open = false;
this.getList();
@@ -391,7 +391,7 @@ export default {
});
} else {
add{{.table.BusinessName|UcFirst}}(this.form).then(response => {
if (response.code === 200) {
if (response.code === 0) {
this.msgSuccess("新增成功");
this.open = false;
this.getList();
+2 -2
View File
@@ -383,7 +383,7 @@ export default {
{{end}}
if (this.form.{{$pkColumnName}} != null) {
update{{.table.BusinessName|UcFirst}}(this.form).then(response => {
if (response.code === 200) {
if (response.code === 0) {
this.msgSuccess("修改成功");
this.open = false;
this.getList();
@@ -391,7 +391,7 @@ export default {
});
} else {
add{{.table.BusinessName|UcFirst}}(this.form).then(response => {
if (response.code === 200) {
if (response.code === 0) {
this.msgSuccess("新增成功");
this.open = false;
this.getList();