Commit f811c221 authored by agping's avatar agping

登录无效 跳转

parent ed1b83de
......@@ -39,8 +39,12 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
function menu_bar(fn) {
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
//登录时间无效 直接跳转登录页面
if(!user_info_obj){
window.location.href="login.html";
}
$ ("#menu_bar").append (template);
if (user_info_obj) {
......
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