Update init.ts
This commit is contained in:
		| @@ -458,8 +458,8 @@ export default (callback: (launch: (router: VueRouter) => [Vue, MiOS]) => void, | |||||||
| 						return x; | 						return x; | ||||||
| 					}, | 					}, | ||||||
| 					dialog(opts) { | 					dialog(opts) { | ||||||
|  | 						const vm = this.new(Dialog, opts); | ||||||
| 						return new Promise((res) => { | 						return new Promise((res) => { | ||||||
| 							const vm = this.new(Dialog, opts); |  | ||||||
| 							vm.$once('ok', result => res({ canceled: false, result })); | 							vm.$once('ok', result => res({ canceled: false, result })); | ||||||
| 							vm.$once('cancel', () => res({ canceled: true })); | 							vm.$once('cancel', () => res({ canceled: true })); | ||||||
| 						}); | 						}); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo