the server responded with a status of 404 怎么解决
时间: 2023-09-21 18:10:17 浏览: 148
404解决办法
根据引用和引用,当服务器返回404状态时,表示请求的资源未找到。解决这个问题的方法有两种。方案一是找到config里的index.js,在其中修改assetsPublicPath为“./”。方案二是尝试将资源的路径修改为正确的路径。根据引用提到的问题,如果是网络图片的问题,你可以尝试使用正确的图片链接。如果是base64的问题,你可以查找相关的文档来了解如何正确使用base64编码的图片。至于引用中提到的第三种方法,使用`<image/>`标签来解决问题,你可以在.wxss文件中查找相关的文档了解如何正确使用该标签。<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 404 (Not Found)](https://blog.csdn.net/m0_51511286/article/details/123127476)[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* [微信小程序 the server responded with a status of 404 错误解决方法](https://blog.csdn.net/BaiYH1994/article/details/77882083)[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 ]
阅读全文