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

报错 没数据 #4

Open
xdwxls opened this issue May 3, 2017 · 8 comments
Open

报错 没数据 #4

xdwxls opened this issue May 3, 2017 · 8 comments

Comments

@xdwxls
Copy link

xdwxls commented May 3, 2017

http://hjingren.cn/magic-music/#/popular 你这个地址 没数据?浏览器报错?

@hzzly
Copy link
Owner

hzzly commented May 3, 2017

因为api是使用别人开源的,可能不太稳定,见谅

@xdwxls
Copy link
Author

xdwxls commented May 12, 2017

看你api/index.js 里面有很多请求 ,比如 fetchGet('/musiclist') /musiclist 这是哪来的呢 没找到,项目跑起来报错,貌似缺少app.js 这个文件

@hzzly
Copy link
Owner

hzzly commented May 12, 2017

这个接口是测试的时候用的,预览报错还是clone下来运行报错,线上预览我这没报错。

@xdwxls
Copy link
Author

xdwxls commented May 12, 2017

clone 下来报错
不好截图
只能复制了
ET http://localhost:3000/music/url?id=471385043 net::ERR_CONNECTION_REFUSED
dispatchXhrRequest @ xhr.js?7ad9:177
xhrAdapter @ xhr.js?7ad9:12
dispatchRequest @ dispatchRequest.js?54ce:52
xhr.js?7ad9:177 GET http://localhost:3000/playlist/detail?id=3778678 net::ERR_CONNECTION_REFUSED
dispatchXhrRequest @ xhr.js?7ad9:177
xhrAdapter @ xhr.js?7ad9:12
dispatchRequest @ dispatchRequest.js?54ce:52
xhr.js?7ad9:177 GET http://localhost:3000/lyric?id=471385043 net::ERR_CONNECTION_REFUSED
dispatchXhrRequest @ xhr.js?7ad9:177
xhrAdapter @ xhr.js?7ad9:12
dispatchRequest @ dispatchRequest.js?54ce:52
App.vue?e284:49 Uncaught (in promise) TypeError: Cannot read property 'data' of undefined
at eval (eval at (app.js:2287), :45:49)
at
(anonymous) @ App.vue?e284:49
music.js?223d:82 Uncaught (in promise) TypeError: Cannot read property 'playlist' of undefined
at eval (eval at (app.js:2448), :83:90)
at
(anonymous) @ music.js?223d:82
music.js?223d:183 Uncaught (in promise) TypeError: Cannot read property 'lrc' of undefined
at eval (eval at (app.js:2448), :186:16)
at

就是请求获取不到

@hzzly
Copy link
Owner

hzzly commented May 12, 2017

api clone下来要加上CORS跨域

@xdwxls
Copy link
Author

xdwxls commented May 13, 2017

关键是你项目app.js 没有? 是不是忘记上传了?

@hzzly
Copy link
Owner

hzzly commented May 13, 2017

哪里要app.js,app.js是build生成的啊

@lzzqwe
Copy link

lzzqwe commented Mar 14, 2020

跟慕课大佬huangyi的差不多 http://ustbhuangyi.com/music/?from=timeline#/recommend

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