fix(web): no workspace_id user jump url update

This commit is contained in:
zhaoying
2026-01-22 15:45:10 +08:00
parent e3110d2f48
commit c5c2f84356
2 changed files with 23 additions and 1 deletions

View File

@@ -28,15 +28,19 @@ import 'dayjs/locale/zh-cn'
import 'dayjs/plugin/timezone'
import 'dayjs/plugin/utc'
import { cookieUtils } from './utils/request';
import { useUser } from '@/store/user';
function App() {
const { t } = useTranslation();
const { locale, language, timeZone } = useI18n()
const { checkJump } = useUser();
useEffect(() => {
const authToken = cookieUtils.get('authToken')
if (!authToken && !window.location.hash.includes('#/login') && !window.location.hash.includes('#/conversation/')) {
window.location.href = `/#/login`;
} else {
checkJump()
}
}, [])