assistant-todo/src/app/page.tsx

24 lines
624 B
TypeScript
Raw Normal View History

2024-04-16 04:11:21 -04:00
'use client'
import { useRouter} from "next/navigation";
2024-05-28 06:54:58 -04:00
import dayjs from "dayjs";
import {useEffect} from "react";
2025-01-14 06:49:19 -05:00
import { isMobile } from 'react-device-detect';
2024-03-09 22:17:44 -05:00
export default function Home() {
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")
}
}
},[])
dayjs.locale('zh-cn')
return (
<main className="flex min-h-screen flex-col p-6">
</main>
);
2024-03-09 22:17:44 -05:00
}