소스 검색

修改form跳转出现的bug

蒋吉兆 4 년 전
부모
커밋
480dee6e37
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 }}