7***@qq.com
7***@qq.com
  • 发布:2020-12-10 16:18
  • 更新:2020-12-10 17:13
  • 阅读:590

发布到云端托管页面刷新报错

分类:uni-app

The requested file was not found on this server.

2020-12-10 16:18 负责人:无 分享
已邀请:
7***@qq.com

7***@qq.com (作者)

https://static-a62ad336-ae11-44c6-a482-d96417e4a009.bspapp.com/h5/ 列表页
https://static-a62ad336-ae11-44c6-a482-d96417e4a009.bspapp.com/h5/pages/details/details 详情页

口区

口区 -

history模式要修改nginx配置 后端配置例子
云端托管配置 https://uniapp.dcloud.io/uniCloud/hosting?id=host-uni-app

uni-app项目根据路由模式不同需要做不同的配置
使用hash模式时,无需特别的配置即可正常使用
使用history模式时可以配置如下规则
腾讯云配置重定向规则将404错误码重定向至index.html
阿里云配置错误文档为index.html

该问题目前已经被锁定, 无法添加新回复