mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 22:49:26 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
d98d95845b
@ -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();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user