Commit 40879e21 authored by zhangyanni's avatar zhangyanni

提交退出登录

parent c8a4866e
......@@ -196,9 +196,8 @@ export default {
if (keys) {
for (var i = keys.length; i--;) {
if(keys[i]==userValue){
alert(11111)
}else{
alert(22222)
document.cookie = keys[i] + '=0;path=/;expires=' + new Date(0).toUTCString() // 清除当前域名下的,例如:m.ratingdog.cn
document.cookie = keys[i] + '=0;path=/;domain=' + document.domain + ';expires=' + new Date(0).toUTCString() // 清除当前域名下的,例如 .m.ratingdog.cn
document.cookie = keys[i] + '=0;path=/;domain=ratingdog.cn;expires=' + new Date(0).toUTCString() // 清除一级域名下的或指定的,例如 .ratingdog.cn
......
......@@ -457,7 +457,8 @@
if (res.code == 0) {
window.localStorage.clear();
window.sessionStorage.clear();
this.publicFun.delCookie();
// this.publicFun.delCookie();
this.publicFun.removeCookie("selected");
this.publicFun.removeCookieType();
that.$router.push("/loginByPhone");
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment