From 7b65c778cc7b26b1ae42041f60b2bc5a44b33482 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 30 七月 2020 16:22:04 +0800
Subject: [PATCH] #当前本版十分完美、冻结

---
 src/main/webapp/views/index.html |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index b662e35..04042de 100644
--- a/src/main/webapp/views/index.html
+++ b/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)
                   }

--
Gitblit v1.9.1