We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 515e0c7 commit b337afbCopy full SHA for b337afb
1 file changed
src/App.tsx
@@ -2,7 +2,6 @@
2
* HumanOS - 直接进入首页,带简单淡入动画
3
*/
4
5
-import { useState, useEffect } from 'react'
6
import { Routes, Route } from 'react-router-dom'
7
import { motion, AnimatePresence } from 'framer-motion'
8
import Layout from '@components/Layout'
@@ -14,13 +13,6 @@ import About from '@pages/About'
14
13
import NotFound from '@pages/NotFound'
15
16
export default function App() {
17
- const [isLoaded, setIsLoaded] = useState(false)
18
-
19
- useEffect(() => {
20
- // 页面加载后显示
21
- setIsLoaded(true)
22
- }, [])
23
24
return (
25
<AnimatePresence mode="wait">
26
<motion.div
0 commit comments