shaogen1995 преди 2 години
родител
ревизия
7f487dab2a
променени са 3 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. BIN
      houtai/public/favicon.ico
  2. 3 1
      houtai/src/pages/Layout/index.tsx
  3. 2 1
      houtai/src/pages/Login/index.tsx

BIN
houtai/public/favicon.ico


+ 3 - 1
houtai/src/pages/Layout/index.tsx

@@ -137,7 +137,9 @@ function Layout() {
   // 点击退出登录
   const loginExit = () => {
     removeTokenInfo();
-    history.push("/login");
+    // history.push("/login");
+    // 跳到前台页面
+    window.location.href='/web/index.html'
   };
 
   return (

+ 2 - 1
houtai/src/pages/Login/index.tsx

@@ -13,7 +13,7 @@ import logoImg from '@/assets/img/logo.png'
 
 export default function Login() {
   // 账号密码
-  const [userName, setUserName] = useState("");
+  const [userName, setUserName] = useState("admin");
   const [passWord, setPassWord] = useState("");
 
   // 键盘按下回车事件
@@ -48,6 +48,7 @@ export default function Login() {
         <div className="inputBox">
           <div className="inputBoxRow">
             <Input
+              disabled
               onKeyUp={(e) => keyUpEntFu(e)}
               value={userName}
               onChange={(e) => setUserName(e.target.value.trim())}