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 api = useAPIClient();
|
||||
if (!error) {
|
||||
return {};
|
||||
}
|
||||
@ -57,7 +56,7 @@ const useErrorProps = (app: Application, error: any) => {
|
||||
type="primary"
|
||||
key="try"
|
||||
onClick={() => {
|
||||
api.auth.setToken(null);
|
||||
app.apiClient.auth.setToken(null);
|
||||
window.location.reload();
|
||||
}}
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user