@@ -868,7 +868,16 @@ export default {
handleInputConfirm() {
let label = this.label;
if (label) {
- this.companyList1.label.push(label)
+ if(this.companyList1.label.length>5){
+ this.$message({
+ message: '最多添加六个标签!',
+ type: 'warning',
+ })
+ return
+ }
+ else{
+ this.companyList1.label.push(label)
}
this.inputVisible = false
this.label = ''