[Client] Resolve #2225
This commit is contained in:
parent
6f92d601ec
commit
bb14895fd8
5 changed files with 56 additions and 5 deletions
|
|
@ -460,7 +460,7 @@ export default (callback: (launch: (router: VueRouter) => [Vue, MiOS]) => void,
|
|||
alert(opts) {
|
||||
return new Promise((res) => {
|
||||
const vm = this.new(Alert, opts);
|
||||
vm.$once('ok', () => res(true));
|
||||
vm.$once('ok', result => res(result));
|
||||
vm.$once('cancel', () => res(false));
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue