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

npm run build 之后将dist文件放到服务器上,报文件缺失的错误,请问怎么解决 #26

Open
songguoya opened this issue Nov 15, 2019 · 3 comments

Comments

@songguoya
Copy link

image

@wdlhao
Copy link
Owner

wdlhao commented Nov 15, 2019

//注册路由
export default new Router({
mode:'history', // 默认为'hash'模式
base: '/permission/', // 添加跟目录,对应服务器部署子目录
routes: constantRouterMap
})
是不是,放的路径不对?我是放到/permission/目录下的;

@songguoya
Copy link
Author

是的,可以了,非常感谢

@WorldPeaceChenYang
Copy link

我也遇到这个问题,你是怎么解决的?

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

3 participants