2024-04-16 04:11:21 -04:00
|
|
|
'use client'
|
2024-06-02 23:19:40 -04:00
|
|
|
import { useRouter} from "next/navigation";
|
2024-05-28 06:54:58 -04:00
|
|
|
import dayjs from "dayjs";
|
2024-06-02 23:19:40 -04:00
|
|
|
import {useEffect} from "react";
|
2025-01-14 06:49:19 -05:00
|
|
|
import { isMobile } from 'react-device-detect';
|
2024-06-02 23:19:40 -04:00
|
|
|
|
2024-03-09 22:17:44 -05:00
|
|
|
export default function Home() {
|
2024-06-02 23:19:40 -04:00
|
|
|
const {replace} = useRouter();
|
|
|
|
useEffect(()=>{
|
2025-01-14 06:49:19 -05:00
|
|
|
if(localStorage.getItem('platform-security')){
|
|
|
|
if (isMobile){
|
|
|
|
window.location.href = 'http://www.huaruyu.com/mobile'
|
|
|
|
}else {
|
|
|
|
replace("/task/project")
|
|
|
|
}
|
|
|
|
}
|
2024-06-02 23:19:40 -04:00
|
|
|
},[])
|
|
|
|
dayjs.locale('zh-cn')
|
|
|
|
return (
|
|
|
|
<main className="flex min-h-screen flex-col p-6">
|
|
|
|
</main>
|
|
|
|
);
|
2024-03-09 22:17:44 -05:00
|
|
|
}
|