在vue.config.js文件中加入如下配置:
// 基本路徑 // baseUrl: './',//vue-cli3.3以下版本使用 publicPath: './', // vue-cli3.3+新版本使用