기본 페이지를 접수리스트 페이지로 설정
This commit is contained in:
@@ -186,10 +186,10 @@ export default function App() {
|
|||||||
<Route path="bbs/bbs" element={<BbsPage />} />
|
<Route path="bbs/bbs" element={<BbsPage />} />
|
||||||
|
|
||||||
<Route path="sitemap" element={<Navigate to="/care/main/sitemap" replace />} />
|
<Route path="sitemap" element={<Navigate to="/care/main/sitemap" replace />} />
|
||||||
<Route path="*" element={<Navigate to="/care/main" replace />} />
|
<Route path="*" element={<Navigate to="/care/reception/list" replace />} />
|
||||||
</Route>
|
</Route>
|
||||||
</Route>
|
</Route>
|
||||||
<Route path="/" element={<Navigate to="/care/main" replace />} />
|
<Route path="/" element={<Navigate to="/care/reception/list" replace />} />
|
||||||
<Route path="*" element={<Navigate to="/login" replace />} />
|
<Route path="*" element={<Navigate to="/login" replace />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
</AntApp>
|
</AntApp>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export default function LoginPage() {
|
|||||||
localStorage.setItem('userid', data.userid)
|
localStorage.setItem('userid', data.userid)
|
||||||
if (data.staffPermission) localStorage.setItem('staffPermission', data.staffPermission)
|
if (data.staffPermission) localStorage.setItem('staffPermission', data.staffPermission)
|
||||||
else localStorage.removeItem('staffPermission')
|
else localStorage.removeItem('staffPermission')
|
||||||
navigate('/care/main', { replace: true })
|
navigate('/care/reception/list', { replace: true })
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
setError(err instanceof Error ? err.message : '로그인에 실패했습니다.')
|
setError(err instanceof Error ? err.message : '로그인에 실패했습니다.')
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import client, { apiPrefix, unwrap, type ApiResponse } from '../../api/client'
|
|||||||
import { homeAccentColors } from '../../theme'
|
import { homeAccentColors } from '../../theme'
|
||||||
import { useTheme } from '../../themeContext'
|
import { useTheme } from '../../themeContext'
|
||||||
import { money } from './homesShared'
|
import { money } from './homesShared'
|
||||||
import NoticePopupQueue from '../../components/NoticePopupQueue'
|
|
||||||
|
|
||||||
type SparkBlock = {
|
type SparkBlock = {
|
||||||
open?: number
|
open?: number
|
||||||
@@ -491,8 +490,6 @@ export default function HomeDashboardPage() {
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Form>
|
</Form>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
||||||
<NoticePopupQueue />
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import {
|
|||||||
import ReceptionApplyModal from '../../components/ReceptionApplyModal'
|
import ReceptionApplyModal from '../../components/ReceptionApplyModal'
|
||||||
import ReceptionBulkModal from '../../components/ReceptionBulkModal'
|
import ReceptionBulkModal from '../../components/ReceptionBulkModal'
|
||||||
import ReceptionProgressModal from '../../components/ReceptionProgressModal'
|
import ReceptionProgressModal from '../../components/ReceptionProgressModal'
|
||||||
|
import NoticePopupQueue from '../../components/NoticePopupQueue'
|
||||||
import MultiSelect, { entriesOptions, mapOptions, type MultiSelectOption } from '../../components/MultiSelect'
|
import MultiSelect, { entriesOptions, mapOptions, type MultiSelectOption } from '../../components/MultiSelect'
|
||||||
import { DownOutlined } from '@ant-design/icons'
|
import { DownOutlined } from '@ant-design/icons'
|
||||||
import client, { apiPrefix, unwrap, type ApiResponse } from '../../api/client'
|
import client, { apiPrefix, unwrap, type ApiResponse } from '../../api/client'
|
||||||
@@ -956,6 +957,8 @@ export default function ReceptionListPage() {
|
|||||||
setApplyIsp(isp)
|
setApplyIsp(isp)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<NoticePopupQueue />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user