Failed to load resource: the server responded with a status
时间: 2023-09-24 08:13:34 浏览: 104
vue打包npm run build时候界面报错的解决
Failed to load resource: the server responded with a status of 413 (Request Entity Too Large) 是一个报错信息,表示服务器响应的状态是413,意味着请求实体太大。 这个错误通常出现在上传文件时,可能是因为上传的文件大小超过了服务器的限制。如果你在本地使用localhost访问系统,一般不会遇到这个问题,但如果通过域名访问系统,可能会出现这个问题。
解决这个问题的方法有两种。第一种是修改配置文件中的assetsPublicPath为“./”,或者第二种是将文件进行压缩,以减小文件的大小。 你可以尝试使用其中一种方法来解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [【异常】Failed to load resource: the server responded with a status of 413 (Request Entity Too Large...](https://blog.csdn.net/wstever/article/details/128870742)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [vue打包npm run build时候界面报错的解决](https://download.csdn.net/download/weixin_38626943/13128820)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)](https://blog.csdn.net/f1204270443/article/details/81449543)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文