MainPage.tsx
477 Bytes
import { useEffect } from 'react'
import { useAppDispatch } from '../store/hooks'
import { activateTab } from '../store/slices/tabsSlice'
export default function MainPage() {
const dispatch = useAppDispatch()
useEffect(() => {
dispatch(activateTab('main'))
}, [dispatch])
return (
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', height: '100%', color: '#888', fontSize: 16 }}>
主页(功能待实现)
</div>
)
}