The problem that the mobile music made by vue2.0 cannot be played on the APP mobile phone.

when I do the mobile music APP project with vue, I want to see the effect on my mobile phone.
the rest of the functions are good, but I can"t play music


~

.

and use
http://ustbhuangyi.com/music/.
test, not my mobile phone problem, the teacher can happily listen to music, mine is wrong!

does any god know what"s going on? QAQ

Mar.07,2021

this is the answer from teacher Huang Yi https://juejin.im/post/5a1af8.


I have encountered the same problem. Has the landlord solved it?


everything is normal, there are no problems, and the functions are easy to use


this is the security mechanism of the browser, which does not allow you to automatically play and harass users. https://yinode. Tech/2017/12/0.
this is a solution that I can manage


just fall back to 2.4.1!


there are two relatively simple solutions:

  1. according to the hack method mentioned in Mr. Huang's article , if not, please check your own code.
  2. go to package.json and change the vue version to 2.4.* , empty the node_modules folder, and then npm install it.
Menu