修改默认/错误页面

1、在服务器根目录下新建文件

.htaccess

ErrorDocument 404 /index.html

2、在代码中配置路由。

猜你喜欢

转载自www.cnblogs.com/jiaoxuanwen/p/9346779.html