|
|
|
@ -14,7 +14,7 @@ import ErrorBoundary from '@/components/ErrorBoundary'
|
|
|
|
|
import { BUILD_VERSION, } from '@/config';
|
|
|
|
|
import useNoticeStore from '@/stores/Notice';
|
|
|
|
|
import useAuthStore from '@/stores/Auth'
|
|
|
|
|
import { fetchUserDetail} from '@/stores/Auth'
|
|
|
|
|
import { useThemeContext } from '@/stores/ThemeContext'
|
|
|
|
|
import { usingStorage } from '@/hooks/usingStorage'
|
|
|
|
|
|
|
|
|
|
import { PERM_ACCOUNT_MANAGEMENT, PERM_ROLE_NEW, PERM_OVERSEA, PERM_AIR_TICKET } from '@/config'
|
|
|
|
@ -24,7 +24,9 @@ const { Title } = Typography;
|
|
|
|
|
|
|
|
|
|
function App() {
|
|
|
|
|
|
|
|
|
|
const { t, i18n } = useTranslation();
|
|
|
|
|
const { t, i18n } = useTranslation()
|
|
|
|
|
|
|
|
|
|
const { colorPrimary } = useThemeContext()
|
|
|
|
|
|
|
|
|
|
const [password, setPassword] = useState('')
|
|
|
|
|
|
|
|
|
@ -76,7 +78,7 @@ function App() {
|
|
|
|
|
<ConfigProvider locale={antdLng}
|
|
|
|
|
theme={{
|
|
|
|
|
token: {
|
|
|
|
|
colorPrimary: '#00b96b',
|
|
|
|
|
colorPrimary: colorPrimary,
|
|
|
|
|
},
|
|
|
|
|
algorithm: theme.defaultAlgorithm,
|
|
|
|
|
}}>
|
|
|
|
@ -105,11 +107,11 @@ function App() {
|
|
|
|
|
style={{
|
|
|
|
|
minHeight: '100vh',
|
|
|
|
|
}}>
|
|
|
|
|
<Header className='header' style={{ position: 'sticky', top: 0, zIndex: 1, width: '100%' }}>
|
|
|
|
|
<Header className='sticky top-0 z-10 w-full'>
|
|
|
|
|
<Row gutter={{ md: 24 }} justify='end' align='middle'>
|
|
|
|
|
<Col span={16}>
|
|
|
|
|
<NavLink to='/'>
|
|
|
|
|
<img src={AppLogo} className='logo' alt='App logo' />
|
|
|
|
|
<img src={AppLogo} className='float-left h-9 my-4 mr-6 ml-0 bg-white/30' alt='App logo' />
|
|
|
|
|
</NavLink>
|
|
|
|
|
<Menu
|
|
|
|
|
theme='dark'
|
|
|
|
|