记:解决We‘re sorry but ... doesn‘t work properly without JavaScript enabled. Please enable it to contin
最新推荐文章于 2023-04-19 10:51:47 发布
最新推荐文章于 2023-04-19 10:51:47 发布
网上的解决方案有很多
1、mode类型 前端修改方式:将mode类型由history改成hash;
后端修改方式:mode还是history,后端配置nginx,设置映射关系 2、publicpath路径问题
publicpath需要绝对路径’/’ 3、本地开发,服务代理信息 检查代理信息是否有误,是否写有多个代理
但都没能解决,最后我发现不要用loacthost:8080,改成本机地址后就解决了。
vue报错:We‘re
sorry
but doesn‘t
work
pro
perl
y without
JavaScript
enable
d. Please
enable
it to
contin
ue。
最近在做一个新项目,配置代理的时候接口请求成功但是总是返回Please
enable
JavaScript
to
contin
ue.
网上看到别人提供的两种
解决
方案:
1.路由改为hash模式(试了没有效果)
2.publicPath:‘/’ 改为 ‘./’ (试了没有效果)
然后打开postman调试看了看接口能正常使用,但当我接口少写一部分的时候发现也会报这个错误(所以这个错误肯定是我配置代理的时候接口没写全)
最后发现在这个的时候把adminapi置空了,而我的接口是需要这个的,,,改为就能正常访问了
遇到的问题:本地开发环境,访问接口状态为200,但没有正确但返回数据,返回信息提示为“We’re
sorry
but template doesn’t
work
pro
perl
y without
JavaScript
enable
d. Please
enable
it to
contin
ue.”
网上搜索的
解决
方法没有
解决
问题,最终是在服务代理发现了问题,代理信息写错了,修改代理信息就改好了。
以下汇总了其他的情况的
解决
方法
1、mode类型
前端修改方式:将mode类型由history改成hash;
F12查看
We're
sorry
but knife4j-vue doesn't
work
pro
perl
y without
JavaScript
enable
d. Please
enable
it to
contin
ue.
过滤器不拦截2.0版本号,去除swagger配置v2后,
解决
,结果第二天再次登录swagger,发现api不显示,还原v2后,可正常显示
至于过滤器不拦截2.0版本号,则通过优化代码
解决
,通过request.getServletPath()方法startwith 配置文件
解决
报错 We‘re
sorry
but doesn‘t
work
pro
perl
y without
JavaScript
enable
d. Please
enable
it to
contin
ue.
vue项目打包发布到线上之后报错修改router模式之后重新打包上传就可以了。
lint net sys text time tools
解决
依赖报错! go语言 下载依赖 package golang.org/x/net/http2/hpack: unrecognized import path "golang.org/x/net/http2/hpack" (https fetch: Get https://golang.org/x/net/http2/hpack?go-get=1: dial tcp 172.217.6.127:443: connectex: A connection attempt fai
led
because the connected party did not
pro
perl
y respond after a period of time, or established connection fai
led
because connected host has fai
led
to respond.)