src/config/index.js 中增加
window._CONFIG['debug'] = true
要设置的页面增加函数isDebug
computed: {
isDebug:function(){
return `${window._CONFIG['debug']}` =='true'?true:false
}
},
页面增加显示代码
<span v-if="isDebug">RsFormListDynamics </span>