Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -67,7 +67,7 @@ | ... | @@ -67,7 +67,7 @@ |
| 67 | * @param file_type[Array] 文件上传类型 | 67 | * @param file_type[Array] 文件上传类型 |
| 68 | * @param multiple[Boolean] 文件多选 | 68 | * @param multiple[Boolean] 文件多选 |
| 69 | */ | 69 | */ |
| 70 | -import { showSuccessToast, showFailToast } from "vant"; | 70 | +import { showSuccessToast, showFailToast, showToast } from "vant"; |
| 71 | import _ from "lodash"; | 71 | import _ from "lodash"; |
| 72 | import { v4 as uuidv4 } from "uuid"; | 72 | import { v4 as uuidv4 } from "uuid"; |
| 73 | import { qiniuTokenAPI, qiniuUploadAPI, saveFileAPI } from "@/api/common"; | 73 | import { qiniuTokenAPI, qiniuUploadAPI, saveFileAPI } from "@/api/common"; |
| ... | @@ -107,12 +107,12 @@ const beforeRead = (file) => { | ... | @@ -107,12 +107,12 @@ const beforeRead = (file) => { |
| 107 | if (fileList.value.length + 1 > props.item.component_props.max_count) { | 107 | if (fileList.value.length + 1 > props.item.component_props.max_count) { |
| 108 | // 数量限制 | 108 | // 数量限制 |
| 109 | flag = false; | 109 | flag = false; |
| 110 | - showFailToast(`最大上传数量为${props.item.component_props.max_count}`); | 110 | + showToast(`最大上传数量为${props.item.component_props.max_count}个`); |
| 111 | } | 111 | } |
| 112 | if (file.size > props.item.component_props.max_size) { | 112 | if (file.size > props.item.component_props.max_size) { |
| 113 | // 体积限制 | 113 | // 体积限制 |
| 114 | flag = false; | 114 | flag = false; |
| 115 | - showFailToast( | 115 | + showToast( |
| 116 | `最大文件体积为${(props.item.component_props.max_size / 1024 / 1024).toFixed(2)}MB` | 116 | `最大文件体积为${(props.item.component_props.max_size / 1024 / 1024).toFixed(2)}MB` |
| 117 | ); | 117 | ); |
| 118 | } | 118 | } | ... | ... |
-
Please register or login to post a comment