diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-02-21 15:30:03 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-02-21 15:30:03 +0900 |
| commit | de6d77d0cbd2905e021a075b667b6688cd5e06f6 (patch) | |
| tree | 4f960a3943926295ca1017bdd1cd35bc33dfe223 /src/web/app/init.ts | |
| parent | wip (diff) | |
| download | sharkey-de6d77d0cbd2905e021a075b667b6688cd5e06f6.tar.gz sharkey-de6d77d0cbd2905e021a075b667b6688cd5e06f6.tar.bz2 sharkey-de6d77d0cbd2905e021a075b667b6688cd5e06f6.zip | |
wip
Diffstat (limited to 'src/web/app/init.ts')
| -rw-r--r-- | src/web/app/init.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/web/app/init.ts b/src/web/app/init.ts index 02c125efef..e4cb8f8bc0 100644 --- a/src/web/app/init.ts +++ b/src/web/app/init.ts @@ -103,6 +103,14 @@ export default (callback: (launch: (api: (os: MiOS) => API) => [Vue, MiOS]) => v router: new VueRouter({ mode: 'history' }), + created() { + this.$watch('os.i', i => { + // キャッシュ更新 + localStorage.setItem('me', JSON.stringify(i)); + }, { + deep: true + }); + }, render: createEl => createEl(App) }).$mount('#app'); |