Browse Source

修改form跳转出现的bug

main
蒋吉兆 4 years ago
parent
commit
717cb676be
  1. 4
      server/resource/template/web/form.vue.tpl

4
server/resource/template/web/form.vue.tpl

@ -107,10 +107,10 @@ export default {
const res = await find{{.StructName}}({ ID: this.$route.query.id }) const res = await find{{.StructName}}({ ID: this.$route.query.id })
if(res.code == 0){ if(res.code == 0){
this.formData = res.data.re{{.Abbreviation}} this.formData = res.data.re{{.Abbreviation}}
this.type == "update"
this.type = "update"
} }
}else{ }else{
this.type == "create"
this.type = "create"
} }
{{ range .Fields -}} {{ range .Fields -}}
{{- if .DictType }} {{- if .DictType }}

Loading…
Cancel
Save