-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
master1lan
committed
Jan 17, 2023
1 parent
5417cf3
commit 41514c6
Showing
6 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,52 @@ | ||
| import { Button } from "@mui/material"; | ||
| import { Link } from "react-router-dom"; | ||
|
|
||
| export default function ErrorPage() { | ||
| return <h1>这里是error页</h1>; | ||
| return ( | ||
| <div | ||
| style={{ | ||
| display: "inline-block", | ||
| position: "relative", | ||
| left: "50%", | ||
| transform: "translate(-50%,50%)", | ||
| padding: "0 20px", | ||
| }} | ||
| > | ||
| <h1 | ||
| style={{ | ||
| textAlign: "center", | ||
| }} | ||
| > | ||
| 🤯🤯🤯有什么出错了 | ||
| </h1> | ||
| <p> | ||
| 当您看到这个页面时,表示您进入了一个不存在的页面,网站目前仅开放 | ||
| <Link to={"/"}> | ||
| <Button>首页</Button> | ||
| </Link> | ||
| 和 | ||
| <Link to={"/"}> | ||
| <Button>视频页</Button> | ||
| </Link> | ||
| 两个页面(虽然两个是同一个页面)。 | ||
| </p> | ||
| <p> | ||
| 请尝试点击链接 | ||
| <Link to={"/"}> | ||
| <Button>首页</Button> | ||
| </Link> | ||
| 重新访问该网站。 | ||
| </p> | ||
| <p> | ||
| 若上述方案仍未奏效,那么可能是本地存储出现错误,请尝试点击快捷按钮 | ||
| <Button onClick={deleteAllDataStorage}>重置按钮</Button> | ||
| 删除网站本地数据进行重置。 | ||
| </p> | ||
| </div> | ||
| ); | ||
| } | ||
|
|
||
| const deleteAllDataStorage = () => { | ||
| localStorage.clear(); | ||
| sessionStorage.clear(); | ||
| }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters