Skip to content

Commit

Permalink
feat: 优化树形结构自动化模板
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelmaxQm committed Nov 18, 2024
1 parent 837d218 commit e85321c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/resource/package/web/view/form.vue.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ const rootNode = {
const getTableData = async() => {
const table = await get{{.StructName}}List()
if (table.code === 0) {
tableData.value = table.data
tableData.value = table.data || []
}
}
Expand Down
2 changes: 1 addition & 1 deletion server/resource/package/web/view/table.vue.tpl
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
2 changes: 1 addition & 1 deletion server/resource/plugin/web/form/form.vue.template
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ const rootNode = {
const getTableData = async() => {
const table = await get{{.StructName}}List()
if (table.code === 0) {
tableData.value = table.data
tableData.value = table.data || []
}
}

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 @@ -352,7 +352,7 @@ const dataSource = ref({})
const getDataSourceFunc = async()=>{
const res = await get{{.StructName}}DataSource()
if (res.code === 0) {
dataSource.value = res.data
dataSource.value = res.data || []
}
}
getDataSourceFunc()
Expand Down

0 comments on commit e85321c

Please sign in to comment.