A blank page and pictures can not be found after vue project published to the server problem

After the release appears to the server

1, a blank page, find assetsPublicPath index.js config file in (note that build inside). His default is assetsPublicPath: '/' change as shown in FIG like it. (Pictures can not find the time there may be no change here)

2, part of the picture can not be found, IMG may only background image, then in the position as shown in utils.js build the plus a publicPath: '../../' on it.

 

Guess you like

Origin www.cnblogs.com/yuanyuanya/p/11571570.html