refactor
This commit is contained in:
parent
8785e1c3a4
commit
98f1d93628
|
@ -214,7 +214,11 @@ export function modalPageWindow(path: string) {
|
|||
}, {}, 'closed');
|
||||
}
|
||||
|
||||
export function dialog(props: Record<string, any>) {
|
||||
export function dialog(props: {
|
||||
type: 'error' | 'info' | 'success' | 'warning' | 'waiting' | 'help';
|
||||
title?: string | null;
|
||||
text?: string | null;
|
||||
}) {
|
||||
return new Promise((resolve, reject) => {
|
||||
popup(import('@client/components/dialog.vue'), props, {
|
||||
done: result => {
|
||||
|
|
Loading…
Reference in New Issue