The first issue after the screen goes black and white Vue packaged into APP

 

1, after the build package npm run page full-screen blank

  Solve Location: config / index.js file: the assetsPublicPath: '/' instead assetsPublicPath: './'

2, after npm run build packaged  at the bottom of the tab display properly, but the content is black and white, only click once to appear after

  Position solution: router index.js disposed in routing / deleted in the mode: 'history',

Guess you like

Origin www.cnblogs.com/xieyao/p/11316731.html