<div v-if="store.getters.powers.includes('admin')
||store.getters.powers.includes('appraisalFirst')
||store.getters.powers.includes('appraisalReview')
||store.getters.powers.includes('appraisalFinal')">
</div>
//如果权限数组中有admin、appraisalFirst、appraisalReview、appraisalFinal则返回true
.includes检索数组
最新推荐文章于 2024-09-07 12:59:11 发布