diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-02-23 07:50:42 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-02-23 07:50:47 +0900 |
| commit | 0162f68cce1739e2ab2bd4241f5f595753fb0893 (patch) | |
| tree | 3d8f7981de84e8250edb451f03db7277e0cfb5c3 /src/web | |
| parent | Update license.ja.pug (diff) | |
| download | sharkey-0162f68cce1739e2ab2bd4241f5f595753fb0893.tar.gz sharkey-0162f68cce1739e2ab2bd4241f5f595753fb0893.tar.bz2 sharkey-0162f68cce1739e2ab2bd4241f5f595753fb0893.zip | |
Fix bug
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/app/init.ts | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/web/app/init.ts b/src/web/app/init.ts index ac567c5023..aa2ec25c96 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 = '<div id="app"></div>'; - 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'); |