移动端使用控制台打印 vconsole
1,npm install vconsole -D
2,新建要给js文件
import Vconsole from 'vconsole' let vConsole = new Vconsole() export default vConsole
3,在首页去引入
require('@/assets/util/vconsole.js')
实在不行,直接引入
import VConsole from 'vconsole'; var vConsole = new VConsole();