hookehuyr

fix 错误提示toast弹框

<!--
* @Date: 2022-08-31 16:16:49
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-27 08:08:34
* @LastEditTime: 2024-07-27 08:22:39
* @FilePath: /data-table/src/components/FileUploaderField/index.vue
* @Description: 文件上传控件
-->
......@@ -335,6 +335,7 @@ const validFileUploader = () => {
// 必填项 未上传文件
if (props.item.component_props.required && !fileList.value.length) {
show_empty.value = true;
showToast(props.item.component_props.label + "必填项未填写");
} else {
show_empty.value = false;
}
......
<!--
* @Date: 2022-08-31 16:16:49
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-27 08:06:38
* @LastEditTime: 2024-07-27 08:21:52
* @FilePath: /data-table/src/components/ImageUploaderField/index.vue
* @Description: 图片上传控件
-->
......@@ -367,6 +367,7 @@ const validImageUploader = () => {
// 必填项 未上传图片
if (props.item.component_props.required && !fileList.value.length) {
show_empty.value = true;
showToast(props.item.component_props.label + "必填项未填写");
} else {
show_empty.value = false;
}
......