mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-29 19:33:04 +00:00
Seemed to have fixed it
This commit is contained in:
parent
441523b6d4
commit
6240f78c83
1 changed files with 11 additions and 4 deletions
|
@ -107,12 +107,19 @@ export function promiseDialog<T extends Promise<any>>(
|
||||||
showing.value = false;
|
showing.value = false;
|
||||||
if (onFailure) {
|
if (onFailure) {
|
||||||
onFailure(err);
|
onFailure(err);
|
||||||
|
} else {
|
||||||
|
if (err.message) {
|
||||||
|
alert({
|
||||||
|
type: 'error',
|
||||||
|
text: err.message,
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
alert({
|
alert({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
text: err,
|
text: err,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// NOTE: dynamic importすると挙動がおかしくなる(showingの変更が伝播しない)
|
// NOTE: dynamic importすると挙動がおかしくなる(showingの変更が伝播しない)
|
||||||
|
|
Loading…
Reference in a new issue