From de6d77d0cbd2905e021a075b667b6688cd5e06f6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 21 Feb 2018 15:30:03 +0900 Subject: wip --- src/web/app/init.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/web/app/init.ts') 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'); -- cgit v1.2.3-freya