Skip to content

Commit ef65343

Browse files
author
pixel
committed
table模板修复
1 parent 3240078 commit ef65343

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

server/resource/template/fe/table.vue.tpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@
6161

6262
<script>
6363
import {
64-
create{{.StructName}}
65-
delete{{.StructName}}
66-
update{{.StructName}}
67-
find{{.StructName}}
64+
create{{.StructName}},
65+
delete{{.StructName}},
66+
update{{.StructName}},
67+
find{{.StructName}},
6868
get{{.StructName}}List
6969
} from "@/api/{{.StructName}}"; // 此处请自行替换地址
7070
import { formatTimeToStr } from "@/utils/data";
@@ -96,7 +96,7 @@ export default {
9696
},
9797
methods: {
9898
async update{{.StructName}}(row) {
99-
const res = await get{{.StructName}}({ ID: row.ID });
99+
const res = await find{{.StructName}}({ ID: row.ID });
100100
this.type = "update";
101101
if (res.code == 0) {
102102
this.form = res.data.re{{.Abbreviation}};

0 commit comments

Comments
 (0)