Skip to content

Commit b337afb

Browse files
committed
clean: 移除未使用的代码
1 parent 515e0c7 commit b337afb

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/App.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* HumanOS - 直接进入首页,带简单淡入动画
33
*/
44

5-
import { useState, useEffect } from 'react'
65
import { Routes, Route } from 'react-router-dom'
76
import { motion, AnimatePresence } from 'framer-motion'
87
import Layout from '@components/Layout'
@@ -14,13 +13,6 @@ import About from '@pages/About'
1413
import NotFound from '@pages/NotFound'
1514

1615
export default function App() {
17-
const [isLoaded, setIsLoaded] = useState(false)
18-
19-
useEffect(() => {
20-
// 页面加载后显示
21-
setIsLoaded(true)
22-
}, [])
23-
2416
return (
2517
<AnimatePresence mode="wait">
2618
<motion.div

0 commit comments

Comments
 (0)