fix(web): conversation page not need login

This commit is contained in:
zhaoying
2026-01-14 19:00:38 +08:00
parent 0d9cdd5039
commit 58d82df327
4 changed files with 22 additions and 5 deletions

View File

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