vue----404界面配置
作者:互联网
上线时一定要为所有的404请求配index.html(静态资源服务器;后台接口服务器),是为了让history路由可以安全匹配
运维和后台也要配置
import contact from "../pages/contact"
import notFound from "../pages/404"
export default [
{path:"/contact", component:contact},
{path:"/",redirect:"/contact"},
{path:"*",component:notFound} //404配置 一定要写在最后
]
标签:notFound,vue,..,component,contact,----,404,path 来源: https://blog.csdn.net/dreamy_wx/article/details/111053220