guyixiangxy 2018-06-16 01:33 采纳率: 0%
浏览 1048
已结题

关于使用maven tomcat插件调试,出现前端界面导航栏无法显示的问题

部署到tomcat服务器中显示正常

部署到tomcat服务器中显示正常

左侧本该有的导航栏没有显示出来

左侧本该有的导航栏没有显示出来

我定位到那个html网页,

 [#macro script]
[/#macro] 
[#macro script_import]
[/#macro]
[#macro css]
[/#macro]
[#macro css_import]
[/#macro]
[#macro layout]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
   [#include "/includes/header.html" /]
   [@css_import /]
   <style type="text/css">
   [@css /]
   </style>
</head>
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
<!-- Site wrapper -->
<div id="wrapper">
    [#include "/includes/menus.html" /]
    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <div class="row border-bottom">
        <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
           <div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="javascript:void(0)"><i class="fa fa-bars"></i> </a>
                <form role="search" class="navbar-form-custom" method="post" action="search_results.html">
                    <div class="form-group">
                        <a href="http://www.dbumama.com" class="form-control" style="padding-top:16px" target="_blank">在线帮助</a>
                    </div>
                </form> 
            </div>
            <ul class="nav navbar-top-links navbar-right">
                <li class="dropdown hidden-xs">
                [@shiro.authenticated]
                    [@shiro.authUser]
                        [#if authUser??]
                            <a href="javascript:void(0)" class="dropdown-toggle">${authUser.app_name}</a>
                        [#else]
                            <a href="${webctx}/setting" class="dropdown-toggle" style="color: red">未绑定公众账号,去绑定</a>
                        [/#if]
                    [/@shiro.authUser]
                [/@shiro.authenticated]
                </li>

                <li class="dropdown hidden-xs">
                    <a href="javascript:void(0)">
                    [@shiro.authenticated]
                        [@shiro.principal name="phone"/]
                    [/@shiro.authenticated]</a>
                </li>

                <li class="hidden-xs"><a href="${webctx}/logout"><i class="fa fa-power-off"></i>退出</a></li>
            </ul>
        </nav>
        </div>
        <div class="row J_mainContent" id="content-main">
            [#nested]
        </div>
        [#include "/includes/footer.html"/]
    </div>
     <!--右侧部分结束-->
</div>
<!-- ./wrapper -->
[@script_import /]
<script>
[@script /]
$(document).ready(function(){
    fix();
});
function fix() {
    var neg = $('.main-header').outerHeight() + $('.main-footer').outerHeight();
    var window_height = $(window).height();
    var sidebar_height = $(".sidebar").height();

    if (window_height >= sidebar_height + neg) {
      $(".content-wrapper, .right-side").css('min-height', window_height - neg);
    } else {
      $(".content-wrapper, .right-side").css('min-height', sidebar_height );
    }
}
</script>
</body>
</html>
[/#macro]

大概觉得右侧的导航栏应该是这一段,通过认证,然后从数据库中取导航项目。


<li class="dropdown hidden-xs">
                    <a href="javascript:void(0)">
                    [@shiro.authenticated]
                        [@shiro.principal name="phone"/]
                    [/@shiro.authenticated]</a>
                </li>

我的问题:怎样才能让左侧导航栏在用tomcat插件调试的时候能够显示出来?感觉跟认证有关系,还请大神帮忙看看问题出在哪里?还有网页中大量出现的[@shiro.authenticated]、[#macro script_import]是什么意思?。万分感谢

  • 写回答

2条回答

  • dabocaiqq 2018-06-16 04:31
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#python#的问题:求帮写python代码
  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?