1
PC-20250623MANY\Administrator
2025-08-26 82710753a6be96cb08c12b99da61e46fe4e53e40
1
1 files modified
18 ■■■■ changed files
src/views/account/components/fnv.vue 18 ●●●● patch | view | raw | blame | history
src/views/account/components/fnv.vue
@@ -50,7 +50,7 @@
      <el-upload
        :with-credentials="true"
        class="avatar-uploader"
        :action="admin + 'user/upload.do'"
        :action="admin + '/user/upload.do'"
        list-type="picture-card"
        name="upload_file"
        :show-file-list="false"
@@ -157,14 +157,14 @@
    },
    beforeAvatarUpload2(file) {
      this.imgStatus2 = true;
      const isLt10M = file.size / 1024 / 1024 < 10;
      if (!isLt10M) {
        this.$message.error(this.$t("hj205"));
        return false;
      } else {
        this.form.img2key = URL.createObjectURL(file);
        compress(file, function (val) {});
      }
      // const isLt10M = file.size / 1024 / 1024 < 10;
      // if (!isLt10M) {
      //   this.$message.error(this.$t("hj205"));
      //   return false;
      // } else {
      //   this.form.img2key = URL.createObjectURL(file);
      //   compress(file, function (val) {});
      // }
    },
    handleError2() {
      this.imgStatus2 = false;