Merge branch 'main' into next

This commit is contained in:
nocobase[bot] 2024-12-05 12:43:36 +00:00
commit d98d95845b

View File

@ -41,7 +41,6 @@ const AppSpin = () => {
}; };
const useErrorProps = (app: Application, error: any) => { const useErrorProps = (app: Application, error: any) => {
const api = useAPIClient();
if (!error) { if (!error) {
return {}; return {};
} }
@ -57,7 +56,7 @@ const useErrorProps = (app: Application, error: any) => {
type="primary" type="primary"
key="try" key="try"
onClick={() => { onClick={() => {
api.auth.setToken(null); app.apiClient.auth.setToken(null);
window.location.reload(); window.location.reload();
}} }}
> >