Skip to content

Commit 1a1e80c

Browse files
committed
feat: add the ignore for xconsole error center
1 parent da3a3b5 commit 1a1e80c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

packages/ui/xconsole-error-center/src/ErrorPrompt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const showError = (option: ShowErrorOption) => {
6767
const errorPromptConfig = {
6868
locale: LOCALE,
6969
shouldIgnore: () => {
70-
return code === 'FoundRiskAndDoubleConfirm'
70+
return errorConfig.ignore || code === 'FoundRiskAndDoubleConfirm'
7171
},
7272
getTitle() {
7373
if (errorConfig) {

packages/ui/xconsole-error-center/src/type.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export interface ErrorCodeConfig {
4040
disableExtraInfo?: boolean;
4141
// 只展示一个按钮
4242
dialogType?: 'alert';
43+
44+
ignore?: boolean;
4345
}
4446

4547
export interface ErrorCodeConfigMap {

packages/xconsole/xconsole.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":"2.2.14"}
1+
{"version":"2.2.15"}

0 commit comments

Comments
 (0)