The first day of the music app mobile terminal (developed with vuecli3)

Configure the common configuration of the mobile terminal in the index.html under the pulibc folder

Insert picture description here

Introduce babel-polyfill and faskclick in main.js

npm instlal babel-polyfill(能支持所有es6所有的新方法可能有的浏览器不支持es6的新方法则需要安装polyfill)
npm install fastclick(取消300ms的延迟)

Insert picture description here

Implement the writing of m-header components

Insert picture description here

Use m-heaqder in App.vue. Alias ​​alias is set when MHeader is introduced here
Insert picture description here

Configure hash routing

Insert picture description here

Encapsulate axios request

Insert picture description here

Encapsulate jsonp request
Insert picture description here

Published 4 original articles · praised 8 · visits 26

Guess you like

Origin blog.csdn.net/m0_46269977/article/details/105509305