解决用户登录失败的bug

This commit is contained in:
季圣华
2019-01-17 22:57:11 +08:00
parent 3df03ef910
commit fc03d05069
4 changed files with 3 additions and 7 deletions

View File

@@ -3,8 +3,6 @@
<head>
<title>ERP系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon"/>
<link type="text/css" rel="stylesheet" href="/css/css.css"/>
<script type="text/javascript" src="/js/jquery-1.8.0.min.js"></script>
@@ -132,7 +130,7 @@
if(res.data.user) {
var user = res.data.user;
sessionStorage.setItem("userId", user.id);
window.location.href = "/";
top.location.href = "http://" + location.host + "/index.html";
}
}
},