90%是在niginx下的服务代理忘写了?或写错了?
遇到的问题:本地开发环境,访问接口状态为200,但没有正确但返回数据,返回信息提示为“We’re sorry but template doesn’t work properly without JavaScript enabled. Please enable it to continue.”
网上搜索的解决方法没有解决问题,最终是在服务代理发现了问题,代理信息写错了,修改代理信息就改好了。
1、mode类型
后端修改方式:mode还是history,后端配置nginx,设置映射关系
2、publicpath路径问题
3、本地开发,服务代理信息
问题:
We’re sorry but project-vue3 doesn’t work properly without JavaScript enabled. Please enable it to continue.
(很抱歉