Update init.ts
This commit is contained in:
parent
53a0f3c794
commit
c222b9ae94
1 changed files with 1 additions and 1 deletions
|
@ -458,8 +458,8 @@ export default (callback: (launch: (router: VueRouter) => [Vue, MiOS]) => void,
|
|||
return x;
|
||||
},
|
||||
dialog(opts) {
|
||||
return new Promise((res) => {
|
||||
const vm = this.new(Dialog, opts);
|
||||
return new Promise((res) => {
|
||||
vm.$once('ok', result => res({ canceled: false, result }));
|
||||
vm.$once('cancel', () => res({ canceled: true }));
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue