Skip to content

Commit

Permalink
增加自动化代码图片功能 修复
Browse files Browse the repository at this point in the history
  • Loading branch information
piexlMax committed Jun 9, 2023
1 parent fc60527 commit 45e4835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/resource/autocode_template/web/table.vue.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
{{- else if eq .FieldType "picture" }}
<el-table-column label="{{.FieldDesc}}" width="200">
<template #default="scope">
<el-image style="width: 100px; height: 100px" :src="scope.row.{{.FieldJson}}" fit="cover"/>
<el-image style="width: 100px; height: 100px" :src="getUrl(scope.row.{{.FieldJson}})" fit="cover"/>
</template>
</el-table-column>
{{- else }}
Expand Down Expand Up @@ -169,7 +169,7 @@
</el-select>
{{- end }}
{{- if eq .FieldType "picture" }}
<SelectImage v-model="getUrl(formData.{{ .FieldJson }})" />
<SelectImage v-model="formData.{{ .FieldJson }}" />
{{- end }}
</el-form-item>
{{- end }}
Expand Down

0 comments on commit 45e4835

Please sign in to comment.