Optimize import
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import React from 'react'
|
||||
import '@/assets/css/pages/home-framework.scss'
|
||||
import Icon from '@ant-design/icons'
|
||||
import router from '@/router'
|
||||
import { COLOR_FONT_SECONDARY } from '@/constants/common.constants'
|
||||
import '@/assets/css/pages/home-framework.scss'
|
||||
import LoadingMask from '@/components/common/LoadingMask'
|
||||
import HideScrollbar, { HideScrollbarElement } from '@/components/common/HideScrollbar'
|
||||
import Icon from '@ant-design/icons'
|
||||
import { COLOR_FONT_SECONDARY } from '@/constants/common.constants'
|
||||
import { NavLink } from 'react-router-dom'
|
||||
|
||||
export const HomeFrameworkContext = createContext<{
|
||||
navbarHiddenState: {
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import React from 'react'
|
||||
import { login } from '@/utils/auth'
|
||||
import {
|
||||
SYSTEM_LOGIN_SUCCESS,
|
||||
SYSTEM_LOGIN_USERNAME_PASSWORD_ERROR,
|
||||
SYSTEM_USER_DISABLE,
|
||||
SYSTEM_USERNAME_NOT_FOUND
|
||||
} from '@/constants/common.constants'
|
||||
import { setToken } from '@/utils/common'
|
||||
import '@/assets/css/pages/login.scss'
|
||||
import { setToken } from '@/utils/common'
|
||||
import { login } from '@/utils/auth'
|
||||
|
||||
const Login: React.FC = () => {
|
||||
const [messageApi, contextHolder] = message.useMessage()
|
||||
|
||||
Reference in New Issue
Block a user