#
Junjie
2025-01-14 2804585b14a62cc1fdec876b65267a4db8bc8995
src/main/webapp/views/index.html
@@ -21,9 +21,8 @@
            <li><a id="console" onclick="nav(this.id)" class="nav-select" href="#">主控图</a></li>
            <li><a id="pipeline" onclick="nav(this.id)" class="nav-unselect" href="#">输送设备</a></li>
            <li><a id="forklift" onclick="nav(this.id)" class="nav-unselect" href="#">提升机</a></li>
<!--            <li><a id="ste" onclick="nav(this.id)" class="nav-unselect" href="#">穿梭车</a></li>-->
            <li><a id="shuttle" onclick="nav(this.id)" class="nav-unselect" href="#">四向穿梭车</a></li>
            <li><a id="task" onclick="nav(this.id)" class="nav-unselect" href="#">任务管理</a></li>
            <li><a id="admin" onclick="nav(this.id)" class="nav-unselect" href="#">管理后台</a></li>
        </ul>
    </div>
</div>
@@ -37,6 +36,10 @@
<script>
    // 导航栏
    function nav(id) {
        if(id == 'admin') {
            window.open('./admin/index.html')
            return
        }
        $('.nav-select').attr("class", "nav-unselect");
        $('#'+id).attr("class", "nav-select");
        $('#content').attr("src", id+".html");