在 vue3 项目中添加了 sitemap.xml。当调用
http://127.0.0.1:5173/sitemap.xml
localhost/sitemap.xml
我将 sitemap.xml 文件保留在根目录和公共文件夹中。
我也遇到同样的问题,如果你找到解决方案了,请分享一下。