xinfeng 5 лет назад
Родитель
Сommit
d4c3d83f21
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      pages/otherpage/money/uploadInvoice.vue

+ 2 - 2
pages/otherpage/money/uploadInvoice.vue

@@ -71,11 +71,11 @@
         const isPNG = file.type === 'image/png';
         const isLt2M = file.size / 1024 / 1024 < 2;
         if (!isJPG && !isPNG) {
-          this.$message.error('上传头像图片只能是 JPG/PNG 格式!');
+          this._toast('上传头像图片只能是 JPG/PNG 格式!', 'error');
           return
         }
         if (!isLt2M) {
-          this.$message.error('上传头像图片大小不能超过 2MB!');
+          this._toast('上传头像图片大小不能超过 2MB!', 'error');
           return
         }
         const formData = new FormData();