Explorar el Código

修改form跳转出现的bug

蒋吉兆 hace 4 años
padre
commit
480dee6e37
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      server/resource/template/web/form.vue.tpl

+ 2 - 2
server/resource/template/web/form.vue.tpl

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