UnexpectedError: restart the app instead of reload
This commit is contained in:
parent
3c50f150dc
commit
6fbd198021
1 changed files with 4 additions and 2 deletions
|
@ -49,11 +49,13 @@ const UnexpectedError: Component<{ error?: any }> = (props) => {
|
|||
<h1>Oh, it is our fault.</h1>
|
||||
<p>There is an unexpected error in our app, and it's not your fault.</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.
|
||||
</p>
|
||||
<div>
|
||||
<Button onClick={() => window.location.reload()}>Reload</Button>
|
||||
<Button onClick={() => (window.location.replace("/"))}>
|
||||
Restart App
|
||||
</Button>
|
||||
</div>
|
||||
<details>
|
||||
<summary>
|
||||
|
|
Loading…
Reference in a new issue