From c222b9ae9467a18f0f9a2ee0146ae0e03971d531 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 3 Dec 2018 20:26:46 +0900 Subject: [PATCH] Update init.ts --- src/client/app/init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/app/init.ts b/src/client/app/init.ts index ae6e2f48b..c9bcd5685 100644 --- a/src/client/app/init.ts +++ b/src/client/app/init.ts @@ -458,8 +458,8 @@ export default (callback: (launch: (router: VueRouter) => [Vue, MiOS]) => void, return x; }, dialog(opts) { + const vm = this.new(Dialog, opts); return new Promise((res) => { - const vm = this.new(Dialog, opts); vm.$once('ok', result => res({ canceled: false, result })); vm.$once('cancel', () => res({ canceled: true })); });