解决方案:直接在this.$confirm内用showCancelButton:false或者showConfirmButton:false代替要隐藏的按钮。注意false为隐藏,true为显示 ———