web/src/views/modules/sysPictureBase/SysPictureBase-AddOrUpdate.vue
@@ -13,6 +13,9 @@
      <zt-form-item label="检索关键字" prop="contentType">
        <el-input v-model="dataForm.contentType"></el-input>
      </zt-form-item>
      <zt-form-item label="备注" prop="remark">
        <el-input v-model="dataForm.remark"></el-input>
      </zt-form-item>
      <input type="hidden" id="svgContentId" :value="dataForm.svgContent"/>
      <zt-form-item>
        <!--                <el-upload action="*" :on-change="uploadSvgContent">-->
@@ -56,12 +59,12 @@
      }
    },
    methods: {
      async init() {
        if (this.dataForm.id) {
          let res = await this.$http.get(`/sysPictureBase/${this.dataForm.id}`)
      async init(id,row) {
        if (id) {
          //let res = await this.$http.get(`/sysPictureBase/${this.dataForm.id}`)
          this.dataForm = {
            ...this.dataForm,
            ...res.data
            ...row
          }
          console.log(this.dataForm, 'this.dataForm this.dataForm')
        }