Skip to content

Commit

Permalink
fix: re-throw error in onBeforeOk for proper error handling (#3407)
Browse files Browse the repository at this point in the history
  • Loading branch information
oljc authored Jan 6, 2025
1 parent fe47db1 commit 04fd194
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/web-vue/components/drawer/drawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ export default defineComponent({
result = (await result) ?? true;
} catch (error) {
result = false;
throw error;
}
}
if (isBoolean(result)) {
Expand Down
1 change: 1 addition & 0 deletions packages/web-vue/components/modal/modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ export default defineComponent({
result = (await result) ?? true;
} catch (error) {
result = false;
throw error;
}
}
if (isBoolean(result)) {
Expand Down
1 change: 1 addition & 0 deletions packages/web-vue/components/popconfirm/popconfirm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ export default defineComponent({
result = (await result) ?? true;
} catch (error) {
result = false;
throw error;
}
}
if (isBoolean(result)) {
Expand Down

0 comments on commit 04fd194

Please sign in to comment.