-第一步
npm install vconsole
-第二步在main.js引入并只在开发环境、测试环境下引入
import host from '@/utils/host';
if(host.getEnvironment() == 'dev'){
const vConsole = new VConsole()
console.log(vConsole.version)
}
image.png
-第一步
npm install vconsole
-第二步在main.js引入并只在开发环境、测试环境下引入
import host from '@/utils/host';
if(host.getEnvironment() == 'dev'){
const vConsole = new VConsole()
console.log(vConsole.version)
}
image.png
本文标题:vue移动端项目引入vconsole,手机端h5调试
本文链接:https://www.haomeiwen.com/subject/wwrjwhtx.html
网友评论