|
|
@@ -10,8 +10,9 @@ import { tryChangeWorkStatus } from './components/RightContent/Book'
|
|
|
import { getAuthCache, setAuthCache } from './utils/auth'
|
|
|
import { LAYOUT_COLLAPSED_KEY } from './utils/cache/cacheEnum'
|
|
|
import consts from './consts'
|
|
|
-import ModalStore from './components/ModalStore'
|
|
|
+import ModalStore from './components/ModalStore/import'
|
|
|
import { stringify } from 'qs'
|
|
|
+import MessageDetail from './pages/Hr/Notification/components/MessageDetail'
|
|
|
|
|
|
const loginPath = '/user/login'
|
|
|
|
|
|
@@ -40,14 +41,6 @@ export async function getInitialState() {
|
|
|
if (history.location.pathname !== loginPath) {
|
|
|
const userInfo = (await fetchUserInfo()) || {}
|
|
|
const permData = (await fetchPermData()) || {}
|
|
|
-
|
|
|
- // if (userInfo?.currentUser?.staffId) {
|
|
|
- // const { username, staffId: id, wsToken: token } = userInfo?.currentUser
|
|
|
- // ws.init(`ws://cld2qa.com/summon/v1/chat/link?username=${username}&id=${id}&token=${token}`, {
|
|
|
- // onMessage
|
|
|
- // })
|
|
|
- // }
|
|
|
-
|
|
|
const collapsed = getAuthCache(LAYOUT_COLLAPSED_KEY) || false
|
|
|
return {
|
|
|
fetchUserInfo,
|
|
|
@@ -73,7 +66,7 @@ export const layout = ({ initialState, setInitialState }) => {
|
|
|
return {
|
|
|
logo,
|
|
|
rightContentRender: () => (
|
|
|
- <ModalStore>
|
|
|
+ <ModalStore _modalMap={{ D_NOTICE_DETAIL: MessageDetail }}>
|
|
|
<RightContent />
|
|
|
</ModalStore>
|
|
|
),
|