vue弹窗后如何禁止滚动条滚动(How to disable scroll bar scrolling after Vue pop-up window)

toggleBody(isPin){
    if(isPin){
        document.body.style.height = '100vh'
        document.body.style['overflow-y'] = 'hidden'
    }else{
        document.body.style.height = 'unset'
        document.body.style['overflow-y'] = 'auto'
    }
}
toggleBody(1)  //在跳出弹窗的时候
toggleBody(0)  //弹窗消失的时候
————————
toggleBody(isPin){
    if(isPin){
        document.body.style.height = '100vh'
        document.body.style['overflow-y'] = 'hidden'
    }else{
        document.body.style.height = 'unset'
        document.body.style['overflow-y'] = 'auto'
    }
}
toggleBody(1)  //在跳出弹窗的时候
toggleBody(0)  //弹窗消失的时候