vue2项目移植到vite后,对于标签资源引入报错的问题如何处理

新手上路,请多包涵

源代码有两个script引入,运行起来后有错误....该如何修改

Unrestricted file system access to "/echarts.min.js"
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/#se... for more details.
Unrestricted file system access to "/crc32.js"

image.png
image.png

阅读 5.8k
1 个回答
新手上路,请多包涵

本地的文件可以使用相对路径啊

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题