在mounted办法里写上

var that = this
document.addEventListener('click', function (e) {
if (document.getElementsByClassName('contentCon')[0]) {

}    
})