解决办法:关闭compile-hero插件
在设置中搜索compile-hero插件
关闭所有自动生成dist目录的选项(如下图所示
解决方案来自于这篇文章 https://blog.csdn.net/weixin_38233549/article/details/108226135