然后子路由组件会报错。
Add "publicPath": "/" to .webpackrc or .roadhogrc can fix this issue
export default function RouterConfig({ history,app }) { const LoginPage = (dynamic as any)({ app, component:()=>import(‘./routes/LoginPage/LoginPage‘) }) const HomePage = (dynamic as any)({ app, component:()=>import(‘./routes/HomePage‘) })
原文地址:https://www.cnblogs.com/unreal-feather/p/10328385.html
时间: 2024-10-14 21:35:36