Commit 1044595e authored by duxinyuan's avatar duxinyuan

修复两个用户职称的bug

parent 777772e1
...@@ -59,7 +59,8 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function ...@@ -59,7 +59,8 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
if (user_info_obj) { if (user_info_obj) {
var temp = document.getElementById ('menu_tpl').innerHTML; var temp = document.getElementById ('menu_tpl').innerHTML;
var doTtmpl = doT.template (temp); var doTtmpl = doT.template (temp);
$ ("#dropdownMenu1").append(user_info_obj['name']); // alert(user_info_obj['name'])
// $ ("#dropdownMenu1").append(user_info_obj['name']);
$ ("#menu_bar").html (doTtmpl (user_info_obj['menu'])); $ ("#menu_bar").html (doTtmpl (user_info_obj['menu']));
//回调 //回调
......
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