One. Development environment and production environment access to the pre API part of the path is not the same.
1. Divided into production environment and development environment. The interface path of the development environment may be different from that of the production environment prod.env.js In the property API_ ROOT.
2. Make a judgment in the access interface layer. If it is a generation environment, let Axios access the basic path plus API_ In this way, the accessed API will be added with “/ erpwebapi”
Two. After the release of the page loading JS, CSS red, background image loading does not come out, icon loading does not come out.
Add or modify the text in the red box of the next picture.
assetsPublicPath: ‘./’,
publicPath: ‘../../’
Three. When using element UI, the style of rewriting element UI by yourself is overridden.
quote app.vue To reference element in- ui.css below