<template>
  <div>
    <update-file
      :multiple="false"
      :max="1"
      :list="imgList1"
      @getUrl="getImgList1"
    ></update-file>
  </div>
</template>

<script>
import updateFile from "../components/updatefile";
export default {
  data() {
    return {
      imgList1: []
    };
  },
  mounted() {},
  methods: {
    getImgList1(url) {
      this.form.pic_path = url
        .map((v, k) => {
          return this.tranlateUrl(v.url);
        })
        .join(",");
    }
  },
  components: {
    updateFile
  }
};
</script>
