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

请问下:可以让nodejs main进程也作为http server提供rest api server服务吗? #4

Open
xeoshow opened this issue Aug 12, 2018 · 6 comments

Comments

@xeoshow
Copy link

xeoshow commented Aug 12, 2018

如题,需要如何做呢?谢谢

@SmallRuralDog
Copy link
Owner

已集成,更新即可!

@xeoshow
Copy link
Author

xeoshow commented Aug 14, 2018

谢谢大神。是否有微信或qq或邮箱联系方式可以进一步交流探讨技术?谢谢!~

@xeoshow
Copy link
Author

xeoshow commented Aug 14, 2018

测试了报错,貌似这个本地的rest url还没有:
/music/url

错误信息:

:9080/#/playlist-detail?id=180106:1 Uncaught (in promise)

<title>Error</title>
Cannot GET /music/url

@xeoshow
Copy link
Author

xeoshow commented Aug 14, 2018

另外日志里还发现这些个错误:

[Vue warn]: Error in nextTick: "TypeError: Cannot read property 'pause' of undefined"

found in

---> at src\renderer\components\Footer\player.vue
at src\renderer\components\Footer\index.vue


at src\renderer\views\main.vue
at src\renderer\App.vue

SmallRuralDog added a commit that referenced this issue Aug 15, 2018
@SmallRuralDog
Copy link
Owner

@xeoshow 已修复

@xeoshow
Copy link
Author

xeoshow commented Aug 15, 2018

谢谢!rest url的问题解决了,但是点击任何一个歌曲播放时,还有undefined问题如下:


vue.esm.js?efeb:1741 TypeError: Cannot read property 'play' of undefined
at VueComponent.eval (player.vue?55e8:118)
at Array.eval (vue.esm.js?efeb:1837)
at flushCallbacks (vue.esm.js?efeb:1758)
at
logError @ vue.esm.js?efeb:1741
globalHandleError @ vue.esm.js?efeb:1732
handleError @ vue.esm.js?efeb:1721
(anonymous) @ vue.esm.js?efeb:1839
flushCallbacks @ vue.esm.js?efeb:1758

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