vite 中 需要携带前缀 "build": "vite build --base=/前缀名字", 如 https://dev-test7.com/brand 此时,需要在page.json中配置如下: "build": "vite build --base=/brand", 构建发布后就可以正确访问了。 vue.config.js中配置 publicPath: '/brand',