review:【antd】【mp】material、message 的迁移 v1
This commit is contained in:
@@ -59,12 +59,8 @@ const uploadFormRef = ref<FormInstance | null>(null);
|
||||
const uploadVideoRef = ref<any>(null);
|
||||
|
||||
async function submitVideo() {
|
||||
try {
|
||||
await uploadFormRef.value?.validate();
|
||||
uploadVideoRef.value?.submit();
|
||||
} catch {
|
||||
// Validation failed
|
||||
}
|
||||
await uploadFormRef.value?.validate();
|
||||
uploadVideoRef.value?.submit();
|
||||
}
|
||||
|
||||
/** 自定义上传 */
|
||||
|
||||
Reference in New Issue
Block a user