初始化fateverse

This commit is contained in:
wenhua
2023-10-13 16:23:20 +08:00
commit 6f0949e432
47 changed files with 8371 additions and 0 deletions

19
src/Loading.tsx Normal file
View File

@@ -0,0 +1,19 @@
import React, { useEffect, useState } from "react";
import NProgress from './mynprogress'
import { Spin } from "antd";
export default function Loading() {
const [visible, setVisible] = useState<boolean>(false)
useEffect(()=>{
NProgress.start()
setVisible(true)
return ()=>{
NProgress.done()
}
})
if(!visible) return null
return <Spin/>
}