浏览代码

文件提示

qinhouyu 1 年之前
父节点
当前提交
e766bf7755
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/components/ObsImageUpload/indexFile.vue

+ 2 - 3
src/components/ObsImageUpload/indexFile.vue

@@ -118,7 +118,6 @@ export default {
       return this.isShowTip && (this.fileType || this.fileSize);
     },
       fileList() {
-      console.log('qqqqqqqqqqqq')
         const val = this.value;
         if (val) {
           // 首先将值转为数组
@@ -191,8 +190,8 @@ export default {
             flag = true
           }
           if (flag == true) {
-            this.$message.error(
-              `文件格式不正确, 规则:${name}!`
+            this.$message.warning(
+              `文件格式不正确!`
             );
             return false;
           }