我在搭建博客的过程中发现代码跑起来的时候服务端返回了这样的一个东西,如下图

We're sorry but blog doesn't work properly without JavaScript enabled. (解决方案)

我相信这个问题会有人遇到的,那么解决这个问题的方法也很简单。

问题出在vue项目中,在router文件夹的index.js文件中,将mode修改为hash模式即可,如果使用的是history,那么需要后端进行配置。

相关文章:

  • 2023-03-14
  • 2021-12-28
  • 2022-12-23
  • 2021-10-19
  • 2022-03-03
  • 2021-07-16
  • 2022-01-17
猜你喜欢
  • 2021-09-20
  • 2021-10-04
  • 2022-12-23
  • 2021-06-29
  • 2021-10-08
  • 2021-08-20
  • 2022-12-23
相关资源
相似解决方案