fix windows/linux get system uuid error

This commit is contained in:
musistudio
2025-08-12 21:41:42 +08:00
parent 075ec76ec1
commit cce1625534
7 changed files with 43 additions and 216 deletions

View File

@@ -128,20 +128,6 @@ export function ConfigProvider({ children }: ConfigProviderProps) {
fetchConfig();
}, [hasFetched, apiKey]);
// Check if user has full access
useEffect(() => {
const checkAccess = async () => {
if (config) {
const hasFullAccess = await api.checkFullAccess();
// Store access level in a global state or context if needed
// For now, we'll just log it
console.log('User has full access:', hasFullAccess);
}
};
checkAccess();
}, [config]);
return (
<ConfigContext.Provider value={{ config, setConfig, error }}>
{children}