vue2.0
find the config folder in the folder to find index.js find the following in index.js build inside assetsPublicPath modify the content here, for example, in the project:
assetsPublicPath: 'http://ygg520lys.gitee.io/maizuo-admin/', // 绝对路径
assetsPublicPath: './' // 也可以这样子写 相对路径
vue3.0
a new vue.config.js (vue3.0 generally do not have this file, the file you want and package.json) at the same level then written on the inside
const autoprefixer = require('autoprefixer');
const pxtorem = require('postcss-pxtorem');
module.exports = {
publicPath: './'
};