自动化立体仓库 - WMS系统
luxiaotao1123
2020-07-30 7b65c778cc7b26b1ae42041f60b2bc5a44b33482
src/main/webapp/views/index.html
@@ -2,10 +2,11 @@
<html>
<head>
  <meta charset="utf-8">
  <title>自动仓储管理系统</title>
  <title>自动仓储 - 管理系统</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="icon" type="image/x-icon" href="../static/image/log.png" />
  <link rel="stylesheet" href="../static/layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="../static/layuiadmin/style/admin.css" media="all">
  <style>
@@ -94,7 +95,7 @@
      <div class="layui-side layui-side-menu">
        <div class="layui-side-scroll">
          <div class="layui-logo" lay-href="home/console.html">
            <!--<img src="../static/image/logo.jpg">-->
            <!--<img src="..../../static/image/logo.jpg">-->
            <span>中扬储存设备</span>
          </div>
@@ -152,14 +153,19 @@
      var element = layui.element;
      var $ = layui.jquery;
      // 替换退出按钮变量
      var logout = document.getElementById('logout');
      var url = logout.getAttribute('href');
      logout.setAttribute('href', baseUrl + url);
      $('#person-username').text(localStorage.getItem('username'));
      $(function () {
          if ("" === localStorage.getItem('token')){
              top.location.href = "/login";
              top.location.href = baseUrl+"/login";
          }
          $.ajax({
              url: "/menu/auth",
              url: baseUrl+ "/menu/auth",
              headers: {'token': localStorage.getItem('token')},
              method: 'POST',
              success: function (res) {
@@ -183,7 +189,7 @@
                      $('#LAY-system-side-menu').append(menuHtml);
                      element.init();
                  } else if (res.code === 403){
                      top.location.href = "/login";
                      top.location.href = baseUrl+"/login";
                  }else {
                      layer.alert(res.msg)
                  }