fix: demo bug (#4348)

This commit is contained in:
jack zhang 2024-05-14 16:49:05 +08:00 committed by GitHub
parent c0e1260189
commit 3e49ffb204
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -110,11 +110,11 @@ const mocks = {
}, },
], ],
}, },
[`${collection}:get/1`]: { [`${collection}:get?filter[id]=1`]: {
id: 1, id: 1,
username: 'Tom', username: 'Tom',
}, },
[`${collection}:get/2`]: { [`${collection}:get?filter[id]=2`]: {
id: 1, id: 1,
username: 'Jack', username: 'Jack',
}, },

View File

@ -17,7 +17,7 @@ import { Options, SignInForm, SignUpForm } from './basic';
import { NAMESPACE } from './locale'; import { NAMESPACE } from './locale';
import { AuthLayout, SignInPage, SignUpPage } from './pages'; import { AuthLayout, SignInPage, SignUpPage } from './pages';
import { Authenticator } from './settings/Authenticator'; import { Authenticator } from './settings/Authenticator';
export { AuthenticatorsContextProvider } from './pages/AuthLayout'; export { AuthenticatorsContextProvider, AuthLayout } from './pages/AuthLayout';
export type AuthOptions = { export type AuthOptions = {
components: Partial<{ components: Partial<{