fix : 完善信息提示框

This commit is contained in:
2024-06-29 17:13:42 +08:00
parent e075eeb0d5
commit d25c285ad6
6 changed files with 43 additions and 7 deletions

View File

@@ -187,7 +187,13 @@ const submitParam = (item) => {
const handleSubmit = async (instance) => {
if (!instance) return
instance.validate(async (valid) => {
if (!valid) return
if (!valid) {
return ElNotification({
title: '提示',
message: '请完善数据,再提交!',
type: 'error'
})
}
const {msg, code} = await addFund(submitParam(formData.value))
ElNotification({
title: '提示',