赞
踩
修改\node_modules@vue\cli-service\lib\options.js.js:
\\修改前: exports.defaults = () => ({ // project deployment base publicPath: '/', // where to output built files outputDir: 'dist', // where to put static assets (js/css/img/font/...) assetsDir: '', // filename for index.html (relative to outputDir) indexPath: 'index.html', // whether filename will contain hash part filenameHashing: true, // boolean, use full build? runtimeCompiler: false, )} \\修改后 publicPath: './',
修改配置服务器的代理在找不到对应url时指向index.html即可
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。