/**
* 注销用户
*/
function loginOut() {
$.ajax({
type: "post",
url: "/loginOut",
dataType: "json",
success: function (data) {
console.log(data)
if (data.success == false) {
// window.localStorage.setItem("token", data.data.token);
// window.location.href = "/";
} else {
if (data.code == 1){
window.location.href = '/login.html'
window.localStorage.removeItem("app")
window.localStorage.removeItem("appList")
}
}
},
error: function (err) {
console.log(err)
}
});
}