提交 9815a08d authored 作者: 钟是志's avatar 钟是志

27923 移动端退出时,清空浏览器的cacheMobile这个键值的缓存

上级 8c2fab5a
...@@ -39,10 +39,12 @@ export function getToken() { ...@@ -39,10 +39,12 @@ export function getToken() {
* 删除token * 删除token
* */ * */
export const delToken = () => { export const delToken = () => {
delCookie('token');
localStorage.removeItem('antd-pro-token-onestop'); localStorage.removeItem('antd-pro-token-onestop');
localStorage.removeItem('antd-pro-token'); localStorage.removeItem('antd-pro-token');
localStorage.removeItem('wisdom-school-token'); localStorage.removeItem('wisdom-school-token');
localStorage.removeItem('user'); localStorage.removeItem('user');
sessionStorage.removeItem('cacheMobile');
}; };
export const getUserInfo = () => { export const getUserInfo = () => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论