Skip to content

Commit 083bece

Browse files
committed
fix: fix e2e test error
1 parent 5e0cd51 commit 083bece

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/sites/demos/pc/app/config-provider/base-composition-api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const design = {
7575
}
7676
7777
const handleSubmitPromise = () => {
78-
ruleFormRef.value.validate()
78+
ruleFormRef.value.validate().catch(() => {})
7979
}
8080
8181
const formData = ref({

examples/sites/demos/pc/app/config-provider/base.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default {
9191
},
9292
methods: {
9393
handleSubmitPromise() {
94-
this.$refs.ruleFormRef.validate()
94+
this.$refs.ruleFormRef.validate().catch(() => {})
9595
}
9696
}
9797
}

0 commit comments

Comments
 (0)