Uncaught SyntaxError: Unexpected
2020-04-09 本文已影响0人
多点干货少点废话
error1:
Uncaught SyntaxError: Unexpected token '<'
开发模式下,
vue.config.js设置 publicPath:'./'或者空时
路由history模式下动态路由 报错
module.exports = {
publicPath:'./',
}
![](https://img.haomeiwen.com/i4802783/a5090ce43a8f60a4.png)
re: 改为 publicPath:'/', 或者路由不使用history模式