Skip to content

Commit

Permalink
feat: 树结构模板调整
Browse files Browse the repository at this point in the history
  • Loading branch information
piexlMax(奇淼 committed Nov 19, 2024
1 parent 43149e3 commit f684ce1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/resource/package/server/service/service.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ import (
"{{.Module}}/model/{{.Package}}"
{{- if not .IsTree}}
{{.Package}}Req "{{.Module}}/model/{{.Package}}/request"
{{- else }}
"errors"
{{- end }}
{{- if .AutoCreateResource }}
Expand Down
1 change: 1 addition & 0 deletions server/resource/plugin/server/service/service.go.template
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ import (
"{{.Module}}/plugin/{{.Package}}/model"
{{- if not .IsTree }}
"{{.Module}}/plugin/{{.Package}}/model/request"
{{- else }}
"errors"
{{- end }}
{{- if .AutoCreateResource }}
Expand Down
2 changes: 1 addition & 1 deletion server/resource/plugin/web/view/view.vue.template
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ const rootNode = {
const getTableData = async() => {
const table = await get{{.StructName}}List()
if (table.code === 0) {
tableData.value = table.data
tableData.value = table.data || []
}
}
{{- end }}
Expand Down

0 comments on commit f684ce1

Please sign in to comment.