public/index.html

<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>

main.js

new VConsole();

这样就打开了console,会在页面右下角显示。