[Client] Resolve #2225

This commit is contained in:
syuilo
2018-12-02 15:26:56 +09:00
parent 6f92d601ec
commit bb14895fd8
5 changed files with 56 additions and 5 deletions

View File

@ -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));
});
}