vue 调试的时候看不到源码的解决方案

562 阅读1分钟

1.采用vue3 setup语法的代码,在编译器的时候是看不到源码的,导致无法调试,比如

image.png

image.png

2.解决方案

在chrome->source->filesystem->add folder top wordspace 添加项目文件夹源代码路径, 然后点击允许

image.png

image.png

源码:

image.png

3.然后刷新浏览器就可以了

image.png