build之后不能访问是因为路由模式问题,
项目build后默认是history
模式,要单独使用的话,一打开就是空白,要设为hash
模式
const RouterConfig = {
mode: 'hash',
routes: Routers
};
记住一定要将mode
改为hash
,官方文档没有说。
build之后不能访问是因为路由模式问题,
项目build后默认是history
模式,要单独使用的话,一打开就是空白,要设为hash
模式
const RouterConfig = {
mode: 'hash',
routes: Routers
};
记住一定要将mode
改为hash
,官方文档没有说。
本文标题:iview build之后空白问题
本文链接:https://www.haomeiwen.com/subject/xffzzxtx.html
网友评论