目录
主要的代码
import React from 'react';
import { formatMessage } from 'umi/locale';
import Link from 'umi/link';
import Exception from '@/components/Exception';
const Exception403 = () => (
<div>
<Exception
type="403"
desc={formatMessage({ id: 'app.exception.description.403' })}
linkElement={Link}
backText={formatMessage({ id: 'app.exception.back' })}
/>
<Link to="/Exception/trigger">go to /Exception/trigger</Link>
</div>
);
export default Exception403;
这个要学习一下