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

在浏览器上localhost: 8080无法访问 #502

Closed
frankxjkuang opened this Issue May 18, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@frankxjkuang

frankxjkuang commented May 18, 2018

通过浏览器访问localhost: 8080 报错Cannot GET

问题复现步骤:

1.npm run dev
2. 浏览器访问localhost: 8080

期望的表现:

访问到该页的首页

观察到的表现:

Cannot GET /

@F-loat

This comment has been minimized.

Contributor

F-loat commented May 18, 2018

小程序要使用微信开发工具来调试,网页版需要额外处理的

@frankxjkuang

This comment has been minimized.

frankxjkuang commented May 18, 2018

我看了官网的文档,没发现相关的说明,官网原画是:需要更改小部分平台差异代码和更新下 webpack 的建构配置就可以直接运行。但是也没有具体说明,请问有相关的文档么?

@F-loat

This comment has been minimized.

Contributor

F-loat commented May 18, 2018

目前没有相关文档,我有写过一篇文章介绍 https://juejin.im/entry/5ab84ab36fb9a028c97a0884 ,后面有空会再更新

@frankxjkuang

This comment has been minimized.

frankxjkuang commented May 18, 2018

我以为mpvue可以同时支持在线编辑测试 web 端和小程序的开发测试。我看了你的文章,要改的地方还有比较细节比较多的,官网也没给两种开发的配置区别,刚刚才开始上手这个也没有什么比较权威的文档,连官网都没写全,很难受啊。尴尬

@aOrz aOrz closed this May 20, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment