退出清空Storage

This commit is contained in:
shiziyuan9527 2020-05-18 16:41:28 +08:00
parent 92dad7b483
commit 84a3887d72
1 changed files with 1 additions and 2 deletions

View File

@ -13,7 +13,6 @@
</template>
<script>
import {TokenKey} from '../../../../common/js/constants';
import {getCurrentUser} from "../../../../common/js/utils";
export default {
@ -32,7 +31,7 @@
break;
case "logout":
this.$get("/signout", function () {
localStorage.removeItem(TokenKey);
localStorage.clear();
window.location.href = "/login";
});
break;