ログアウトの処理と外部サービス連携Viewがセッションクッキーを作らないように (#4856)
This commit is contained in:
parent
c6249b82d4
commit
58a04ce1a5
2 changed files with 6 additions and 2 deletions
|
|
@ -126,7 +126,7 @@ export default (os: MiOS) => new Vuex.Store({
|
|||
|
||||
logout(ctx) {
|
||||
ctx.commit('updateI', null);
|
||||
document.cookie = 'i=;';
|
||||
document.cookie = `i=; max-age=0; domain=${document.location.hostname}`;
|
||||
localStorage.removeItem('i');
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue