|
|
|
|
@ -15,7 +15,7 @@ import 'dayjs/locale/zh-cn'
|
|
|
|
|
import { useEffect } from 'react'
|
|
|
|
|
import { Outlet, useHref, useNavigate } from 'react-router-dom'
|
|
|
|
|
import { appendRequestHeader } from '@/utils/request'
|
|
|
|
|
import { loadPageSpy } from '@/utils/pagespy'
|
|
|
|
|
import { loadPageSpy } from '@haina/utils-pagespy'
|
|
|
|
|
|
|
|
|
|
import AppLogo from '@/assets/highlights_travel_300_300.png'
|
|
|
|
|
import '@/assets/App.css'
|
|
|
|
|
@ -26,6 +26,7 @@ import { useGlobalNotify } from '@/hooks/useGlobalNotify'
|
|
|
|
|
import GeneratePaymentDrawer from './Conversations/Online/Components/GeneratePaymentDrawer'
|
|
|
|
|
import GenerateAutoDocDrawer from './Conversations/Online/Components/GenerateAutoDocDrawer'
|
|
|
|
|
import LogUploader from '@/components/LogUploader'
|
|
|
|
|
import { BUILD_VERSION } from '@/config'
|
|
|
|
|
|
|
|
|
|
const fetchEmailWorker = new Worker(FetchEmailWorker, { type: 'module' });
|
|
|
|
|
|
|
|
|
|
@ -55,7 +56,7 @@ function AuthApp() {
|
|
|
|
|
let _fetchEmailWorker;
|
|
|
|
|
if (loginUser.userId > 0) {
|
|
|
|
|
appendRequestHeader('X-User-Id', loginUser.userId)
|
|
|
|
|
loadPageSpy(loginUser.username)
|
|
|
|
|
loadPageSpy(loginUser.username + '(v' + BUILD_VERSION + ')', 'Sales CRM', true)
|
|
|
|
|
connectWebsocket(loginUser.userId)
|
|
|
|
|
fetchInitialData(loginUser)
|
|
|
|
|
|
|
|
|
|
|