@uiw-admin/exceptions
Version:
65 lines (42 loc) • 1.35 kB
Markdown
[](https://www.npmjs.com/package/@uiw-admin/exceptions)
> 1. 403 页面
> 2. 404 页面
> 3. 500 页面
```bash
npm i @uiw-admin/exceptions --save
```
```jsx mdx:preview
import { Exceptions403 } from '@uiw-admin/exceptions'
import React from 'react'
const Demo = () => <Exceptions403 />
export default Demo
```
```jsx mdx:preview
import { Exceptions404 } from '@uiw-admin/exceptions'
import React from 'react'
const Demo = () => <Exceptions404 />
export default Demo
```
```jsx mdx:preview
import { Exceptions500 } from '@uiw-admin/exceptions'
import React from 'react'
const Demo = () => <Exceptions500 />
export default Demo
```
| 参数 | 说明 | 类型 | 默认值 |
| :------ | :------ | :------ | :------ |
| path | 按钮跳转链接 | `string` | `/home` |
| btnText | 按钮文字 | `string` | `返回首页` |
感谢所有的贡献者,欢迎开发者为开源项目贡献力量。
<a href="https://github.com/uiwjs/uiw-admin/graphs/contributors">
<img src="https://uiwjs.github.io/uiw-admin/CONTRIBUTORS.svg" />
</a>
Licensed under the MIT License.