公共异常组件
- 403 页面
- 404 页面
- 500 页面
安装
npm i @uiw-admin/exceptions --save # yarn add @uiw-admin/exceptions
403页面预览
import { Exceptions403 } from '@uiw-admin/exceptions'
import React from 'react'
const Demo = () => <Exceptions403 />
export default Demo
404页面预览
import { Exceptions404 } from '@uiw-admin/exceptions'
import React from 'react'
const Demo = () => <Exceptions404 />
export default Demo
500页面预览
import { Exceptions500 } from '@uiw-admin/exceptions'
import React from 'react'
const Demo = () => <Exceptions500 />
export default Demo
ExceptionsProps
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
path | 按钮跳转链接 | string |
/home |
btnText | 按钮文字 | string |
返回首页 |
贡献者
感谢所有的贡献者,欢迎开发者为开源项目贡献力量。
License
Licensed under the MIT License.