如题
参考 uniapp打包H5时,访问index.html页面白屏报错net::ERR_ABORTED 404 - 简书
nginx中修改 配置文件
location / {
try_files $uri $uri/ /index.html;
root html;
index index.html index.htm;
}
uniapp里配置
![](https://img-blog.csdnimg.cn/direct/2f107e263cfd435689ebdb888e0b9c97.png)
重新载入
![](https://img-blog.csdnimg.cn/direct/4a938bf50b1142ac8df67072b4654dd5.png)
如题
参考 uniapp打包H5时,访问index.html页面白屏报错net::ERR_ABORTED 404 - 简书
nginx中修改 配置文件
location / {
try_files $uri $uri/ /index.html;
root html;
index index.html index.htm;
}
uniapp里配置
重新载入