summaryrefslogtreecommitdiff
path: root/src/web/app/init.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-02-21 15:30:03 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-02-21 15:30:03 +0900
commitde6d77d0cbd2905e021a075b667b6688cd5e06f6 (patch)
tree4f960a3943926295ca1017bdd1cd35bc33dfe223 /src/web/app/init.ts
parentwip (diff)
downloadsharkey-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.ts8
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');