This commit is contained in:
Pan
2017-04-24 17:34:04 +08:00
parent b3e1b6c824
commit 3fe2a376dd
8 changed files with 46 additions and 26 deletions

View File

@@ -114,6 +114,7 @@ const user = {
return new Promise((resolve, reject) => {
logout(state.token).then(() => {
commit('SET_TOKEN', '');
commit('SET_ROLES', []);
Cookies.remove('X-Ivanka-Token');
resolve();
}).catch(error => {