long
2021-08-18 08bd89345399c05df87ad065918494837b9d57bb
src/pages/system/basic.vue
@@ -15,7 +15,7 @@
        <!-- 上传图片组件(单图) -->
        <UploadSingleImg
          ref="refUploadImg"
          v-model="dialogData.uploadShareImgs"
          v-model="basicData.uploadShareImgs"
          @change.capture="$refs['basicForm'].clearValidate()"
        />
      </el-form-item>
@@ -37,8 +37,8 @@
import mixin_upload from '@/mixins/upload.js' // 通用上传图片预览
import UploadSingleImg from '@/components_simple/UploadSingleImg'
export default {
  components: {},
  mixins: [mixin_upload, UploadSingleImg],
  components: { UploadSingleImg },
  mixins: [mixin_upload],
  data() {
    return {
      basicData: {
@@ -94,7 +94,7 @@
        if (valid) {
          // 上传图片
          this.$refs.refUploadImg.runUploadImg((imgUrl) => {
            imgUrl && this.$set(this.dialogData, 'shareImg', imgUrl)
            imgUrl && this.$set(this.basicData, 'shareImg', imgUrl)
            this.submitReq()
          })
        }