Profile page

This commit is contained in:
2025-09-20 17:18:13 +08:00
parent ae0990a6cc
commit a119be72d1
6 changed files with 544 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ export const useSolarNetwork = () => {
})
}
export const useSolarNetworkUrl = () => {
export const useSolarNetworkUrl = (withoutProxy = false) => {
const config = useRuntimeConfig()
return config.public.development ? "/api" : config.public.apiBase
return (config.public.development && !withoutProxy) ? "/api" : config.public.apiBase
}