1.安装
1 yarn add Vconsole
2.引入
1 import Vconsole from 'vconsole' 2 const vConsole = new Vconsole() 3 Vue.use(vConsole)
或者
<script src="https://wechatfe.github.io/vconsole/lib/vconsole.min.js?v=3.2.0"></script>
<script>window.vConsole = new window.VConsole();</script>