mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 10:25:48 +08:00
Fix: Install page redirects to signin if Dify finished setup. (#762)
This commit is contained in:
@@ -3,8 +3,8 @@ import { del, get, patch, post, put } from './base'
|
||||
import type {
|
||||
AccountIntegrate, CommonResponse, DataSourceNotion,
|
||||
IWorkspace, LangGeniusVersionResponse, Member,
|
||||
OauthResponse, PluginProvider, Provider, ProviderAnthropicToken, ProviderAzureToken, TenantInfoResponse,
|
||||
UserProfileOriginResponse,
|
||||
OauthResponse, PluginProvider, Provider, ProviderAnthropicToken, ProviderAzureToken,
|
||||
SetupStatusResponse, TenantInfoResponse, UserProfileOriginResponse,
|
||||
} from '@/models/common'
|
||||
import type {
|
||||
UpdateOpenAIKeyResponse,
|
||||
@@ -19,6 +19,10 @@ export const setup: Fetcher<CommonResponse, { body: Record<string, any> }> = ({
|
||||
return post('/setup', { body }) as Promise<CommonResponse>
|
||||
}
|
||||
|
||||
export const fetchSetupStatus = () => {
|
||||
return get('/setup') as Promise<SetupStatusResponse>
|
||||
}
|
||||
|
||||
export const fetchUserProfile: Fetcher<UserProfileOriginResponse, { url: string; params: Record<string, any> }> = ({ url, params }) => {
|
||||
return get(url, params, { needAllResponseContent: true }) as Promise<UserProfileOriginResponse>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user