VUE table 根据某一条件隐藏某一字段

//在页面渲染时使用( 在created()方法中 )
if (userType === "EX") {
            this.tableConfig.tableColumns=this.tableConfig.tableColumns.filter(col=>col.key!='supplyCol')
        }

 

posted @ 2021-02-23 14:02  哎丫丫呀喂  阅读(1398)  评论(0编辑  收藏  举报