转自:https://www.cnblogs.com/qdlhj/p/12332407.html

采用方式:

if (val == 1) {
        this.$refs['createForm'].rules.stopPushTime[0].required = false;
      }else{
        this.$refs['createForm'].rules.stopPushTime[0].required = true;
      }

相关文章: