Initial commit: restore project after Git corruption

This commit is contained in:
2025-10-21 18:29:15 +08:00
commit 0bb423fcca
112 changed files with 19665 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import React, { useEffect } from 'react';
import { useAuthStore } from '@/store/authStore';
interface AuthProviderProps {
children: React.ReactNode;
}
export const AuthProvider: React.FC<AuthProviderProps> = ({ children }) => {
const initAuth = useAuthStore(state => state.initAuth);
useEffect(() => {
// 在应用启动时初始化认证状态
initAuth();
}, [initAuth]);
return <>{children}</>;
};