|
@@ -2,7 +2,6 @@
|
|
import React, { useState } from 'react';
|
|
import React, { useState } from 'react';
|
|
import { Layout, Row, Col, ConfigProvider, Image } from 'antd';
|
|
import { Layout, Row, Col, ConfigProvider, Image } from 'antd';
|
|
import { TabBar } from 'antd-mobile';
|
|
import { TabBar } from 'antd-mobile';
|
|
-import { useSelector } from 'react-redux';
|
|
|
|
|
|
|
|
import logo from '../assets/imgs/logo-v3.jpg';
|
|
import logo from '../assets/imgs/logo-v3.jpg';
|
|
import NavbarFloat from './NavbarFloat';
|
|
import NavbarFloat from './NavbarFloat';
|
|
@@ -19,9 +18,6 @@ import OutputlistPage from '@/pages/patient/OutputList';
|
|
import PatientManagement from '@/pages/patient/PatientManagement';
|
|
import PatientManagement from '@/pages/patient/PatientManagement';
|
|
import MeButton from '@/pages/security/components/MeButton';
|
|
import MeButton from '@/pages/security/components/MeButton';
|
|
import Profile from '@/pages/security/Profile';
|
|
import Profile from '@/pages/security/Profile';
|
|
-import Login from '@/pages/security/Login';
|
|
|
|
-
|
|
|
|
-import type { RootState } from '@/states/store';
|
|
|
|
|
|
|
|
// import { Link } from 'react-router-dom';
|
|
// import { Link } from 'react-router-dom';
|
|
// import { MenuOutlined } from '@ant-design/icons';
|
|
// import { MenuOutlined } from '@ant-design/icons';
|
|
@@ -68,8 +64,6 @@ const BasicLayout: React.FC<BasicLayoutProps> = () => {
|
|
setCurrentKey(key);
|
|
setCurrentKey(key);
|
|
};
|
|
};
|
|
|
|
|
|
- const userInfo = useSelector((state: RootState) => state.userInfo);
|
|
|
|
-
|
|
|
|
return (
|
|
return (
|
|
// ConfigProvider 用于自定义 Ant Design 的主题和 breakpoints
|
|
// ConfigProvider 用于自定义 Ant Design 的主题和 breakpoints
|
|
<ConfigProvider
|
|
<ConfigProvider
|
|
@@ -87,8 +81,6 @@ const BasicLayout: React.FC<BasicLayoutProps> = () => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
>
|
|
>
|
|
- {/* 登录遮罩层 */}
|
|
|
|
- {userInfo.uid === 0 && <Login />}
|
|
|
|
<Layout
|
|
<Layout
|
|
style={{
|
|
style={{
|
|
minHeight: '100vh',
|
|
minHeight: '100vh',
|