Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

官方这个例子 vue-cli3 build 之后 放到nginx 访问一直只是显示骨架屏。 #70

Open
hst0305 opened this issue Feb 13, 2019 · 1 comment

Comments

@hst0305
Copy link

hst0305 commented Feb 13, 2019

配置什么什么都没有动!只修改了 publicPath:"./", 解决引用路径问题!是否还需要做什么调整吗?

build 的之后需要自己在index.html手动加上这些东西。
onload="this.onload=null;this.rel='stylesheet';window.STYLE_READY=1;window.mountApp&&window.mountApp();"
但感觉流程不很对。应该是需要在 路由加载完成之后。触发!!

是否有其它方式!

@PengXing
Copy link

可以参考这个文件 https://github.com/lavas-project/lavas-template-vue/blob/release-basic/core/entry-client.js#L103 实现方法类似,你是不是没有实现这个 mountApp 方法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants