[Vue3 + Vite + TS] Introduce the mobile terminal debugging panel Vconsole (the simplest and most practical in the whole network)

Vue3 introduces mobile terminal debugging panel Vconsole

$ npm install vconsole

insert image description here
After the installation is complete, main.tsimport

const env = import.meta.env.VITE_APP_ENV // 获取配置信息
import Vconsole from 'vconsole' // 引入 vconsole
if(env === 'uat') new Vconsole() // 如所有环境均需开启 则不需要判断

insert image description here

Guess you like

Origin blog.csdn.net/Web_chicken/article/details/130238421