UnexpectedError: restart the app instead of reload

This commit is contained in:
thislight 2024-11-17 21:00:36 +08:00
parent 3c50f150dc
commit 6fbd198021
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E

View file

@ -49,11 +49,13 @@ const UnexpectedError: Component<{ error?: any }> = (props) => {
<h1>Oh, it is our fault.</h1> <h1>Oh, it is our fault.</h1>
<p>There is an unexpected error in our app, and it's not your fault.</p> <p>There is an unexpected error in our app, and it's not your fault.</p>
<p> <p>
You can reload to see if this guy is gone. If you meet this guy You can restart the app to see if this guy is gone. If you meet this guy
repeatly, please report to us. repeatly, please report to us.
</p> </p>
<div> <div>
<Button onClick={() => window.location.reload()}>Reload</Button> <Button onClick={() => (window.location.replace("/"))}>
Restart App
</Button>
</div> </div>
<details> <details>
<summary> <summary>