Vue CLI让js和css的路径是相对路径

{{ time }}

在项目目录下建立vue.config.js, 并填入以下内容:

module.exports = {
  publicPath: ""
};

注意路径是/vue.config.js,而不是/src/vue.config.js