jinlin
2023-11-07 11713839245ecb7483fd24b66d8462011b5c351e
zt/core/src/main/resources/template/add-or-update.vue.vm
@@ -30,7 +30,7 @@
    methods: {
      // 获取信息
      async getInfo() {
        let res = await #[[this.$http.get(]]#`/${moduleName}/${pathName}/#[[${]]#this.dataForm.id}`)
        let res = await #[[this.$http.get(]]#`/${moduleName}/${className}/#[[${]]#this.dataForm.id}`)
        this.dataForm = {
          ...this.dataForm,
          ...res.data
@@ -38,7 +38,7 @@
      },
      // 表单提交
      async formSubmit() {
        let res = await #[[this.$http]]#[!this.dataForm.id ? 'post' : 'put']('/${moduleName}/${pathName}/', this.dataForm)
        let res = await #[[this.$http]]#[!this.dataForm.id ? 'post' : 'put']('/${moduleName}/${className}/', this.dataForm)
        if (res.success) {
          await this.$tip.success()
          this.$refs.dialog.close()