添加登录和后端校验

完成后端设计(未在本仓库体现),通过安全的手段完成了登录鉴权
This commit is contained in:
2026-08-06 16:27:36 +08:00
commit b19a56003f
286 changed files with 51650 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
import { Component, PropsWithChildren } from 'react'
import { ThemeProvider } from './context/ThemeContext'
import { getTheme, resolveTheme } from './utils/store'
import { applyPageBackground } from './utils/themeBackground'
import './app.scss'
class App extends Component<PropsWithChildren> {
componentDidMount() {
// 启动最早时机同步页面背景,避免自定义导航区在深色模式下闪白
applyPageBackground(resolveTheme(getTheme()))
}
componentDidShow() {}
componentDidHide() {}
render() {
return (
<ThemeProvider>
{this.props.children}
</ThemeProvider>
)
}
}
export default App