目录:
报错信息:
Unrestricted file system access to "/fillroot"
For security concerns, accessing files outside of serving allow list will be restricted
by default in the future version of Vite.
Refer to https://vitejs.dev/config/#server-fs-allow for more details.
出错原因:
我这边主要是因为页面组件中的 img 的 src 未赋值。 (注意静态文件地址!!)
出错原因参考官网:
Configuring Vite | ViteNext Generation Frontend Toolinghttps://vitejs.dev/config/#server-fs-allow