Replies: 1 comment
-
哈喽 请问遇到过 主应用加载子应用 路由跳转的时候 加载承载子应用节点的顺序问题么,大概意思就是子应用返回找节点的时候节点dom还没有渲染完 导致渲染失败 ,这个问题出现的概率还没有找到 有时候能加载出来子应用 有时候就失败 F`12报的错误就是没找到dom节点 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
localhost:7000 主应用 7001子应用
nginx代理配置
server {
listen 7000;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
}
server {
listen 7001;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
}
出现的问题:
子应用: publicPath:
http://localhost:7000/app1/
,单独打开可以正常访问
但集成到主应用里:
这个子应用页面 p_keepalive.js 路径上就没有/app1/ 了,导致只显示了umi的loading...页面
请问有没有人能帮助一下
Beta Was this translation helpful? Give feedback.
All reactions