Cookieを使わないように

This commit is contained in:
syuilo 2018-11-28 16:19:02 +09:00
parent f257853906
commit 4bbb7eded3
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
5 changed files with 7 additions and 12 deletions

View file

@ -129,6 +129,7 @@ export default (os: MiOS) => new Vuex.Store({
logout(ctx) {
ctx.commit('updateI', null);
document.cookie = `i=; domain=${hostname}; expires=Thu, 01 Jan 1970 00:00:01 GMT;`;
localStorage.removeItem('i');
},
mergeMe(ctx, me) {