这个问题应该会在虚拟机中出现
vue懒加载的文件报错,chrome控制台出现
Uncaught SyntaxError: Invalid or unexpected token
定位问题发现在控制台内看到文件尾部有一行红点点,鼠标放上显示提示“\u0”。就不截图了。
解决方案
apache
# 修改配置文件
EnableSendfile off
nginx
location / {
...
sendfile off;
}
重启后就好了