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

Cannot read properties of undefined (reading 'hots') at search.vue:75:1 #80

Open
TownTowner opened this issue Apr 1, 2023 · 1 comment

Comments

@TownTowner
Copy link

打开搜索后页面停滞,F12控制台报错:

/#/music/search:1 Access to XMLHttpRequest at 'https://mu-api.yuk0.com/search/hot' from origin 'https://netease-music.fe-mm.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://v-music.vercel.app' that is not equal to the supplied origin.
mu-api.yuk0.com/search/hot:1 Failed to load resource: net::ERR_FAILED
search.vue:75 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'hots')
at search.vue:75:1

如图:
1680353344908

@maomao1996
Copy link
Owner

这个接口偶尔会跨域,后面会更换 api 接口域名

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