mirror of
https://github.com/langgenius/dify.git
synced 2026-04-15 18:06:36 +08:00
fix: web test
This commit is contained in:
parent
7747b637db
commit
6209038918
@ -35,7 +35,6 @@ import type {
|
||||
} from '@/models/common'
|
||||
import type { RETRIEVE_METHOD } from '@/types/app'
|
||||
import { del, get, patch, post, put } from './base'
|
||||
import { consoleClient } from './client'
|
||||
|
||||
type LoginSuccess = {
|
||||
result: 'success'
|
||||
@ -385,5 +384,7 @@ export const resetEmail = (body: { new_email: string, token: string }): Promise<
|
||||
export const checkEmailExisted = (body: { email: string }): Promise<CommonResponse> =>
|
||||
post<CommonResponse>('/account/change-email/check-email-unique', { body }, { silent: true })
|
||||
|
||||
export const getAvatar = ({ avatar }: { avatar: string }): Promise<{ avatar_url: string }> =>
|
||||
consoleClient.account.avatar({ query: { avatar } })
|
||||
export const getAvatar = async ({ avatar }: { avatar: string }): Promise<{ avatar_url: string }> => {
|
||||
const { consoleClient } = await import('./client')
|
||||
return consoleClient.account.avatar({ query: { avatar } })
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user