rockfang commented on code in PR #10907:
URL: https://github.com/apache/dolphinscheduler/pull/10907#discussion_r920791787


##########
dolphinscheduler-ui/src/views/resource/file/upload/index.tsx:
##########
@@ -55,6 +53,8 @@ export default defineComponent({
 
     const removeFile = () => {
       state.uploadForm.name = ''
+      state.uploadForm.file = ''
+      state.uploadFormRef.validate()

Review Comment:
   Agree. I'll add a commit to cancel the verification.



##########
dolphinscheduler-ui/src/views/resource/udf/resource/components/upload-modal.tsx:
##########
@@ -52,12 +52,20 @@ export default defineComponent({
     const customRequest = ({ file }: any) => {
       state.uploadForm.name = file.name
       state.uploadForm.file = file.file
+      state.uploadFormRef.validate()
+    }
+
+    const removeFile = () => {
+      state.uploadForm.name = ''
+      state.uploadForm.file = ''
+      state.uploadFormRef.validate()

Review Comment:
   Agree. I'll add a commit to cancel the verification.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to