From 7a4972c524c83b199d9678639a2dafb7ca87bc93 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 23 Feb 2018 07:50:42 +0900 Subject: [PATCH] Fix bug --- src/web/app/init.ts | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/web/app/init.ts b/src/web/app/init.ts index ac567c502..aa2ec25c9 100644 --- a/src/web/app/init.ts +++ b/src/web/app/init.ts @@ -87,23 +87,6 @@ export default (callback: (launch: (api: (os: MiOS) => API) => [Vue, MiOS]) => v // アプリ基底要素マウント document.body.innerHTML = '
'; - const app = new Vue({ - router: new VueRouter({ - mode: 'history' - }), - created() { - this.$watch('os.i', i => { - // キャッシュ更新 - localStorage.setItem('me', JSON.stringify(i)); - }, { - deep: true - }); - }, - render: createEl => createEl(App) - }); - - os.app = app; - const launch = (api: (os: MiOS) => API) => { os.apis = api(os); @@ -117,6 +100,23 @@ export default (callback: (launch: (api: (os: MiOS) => API) => [Vue, MiOS]) => v } }); + const app = new Vue({ + router: new VueRouter({ + mode: 'history' + }), + created() { + this.$watch('os.i', i => { + // キャッシュ更新 + localStorage.setItem('me', JSON.stringify(i)); + }, { + deep: true + }); + }, + render: createEl => createEl(App) + }); + + os.app = app; + // マウント app.$mount('#app');