|
@@ -76,7 +76,7 @@ const handleClick = (val) => {
|
|
const isExist = idChecked.value.includes(val.id)
|
|
const isExist = idChecked.value.includes(val.id)
|
|
if (!isExist) {
|
|
if (!isExist) {
|
|
// 添加
|
|
// 添加
|
|
- if (props.limit === currentSelect.value.length) return Snackbar.warning(`最多可选${props.limit}个行业`)
|
|
|
|
|
|
+ if (props.limit === idChecked.value.length) return Snackbar.warning(`最多可选${props.limit}个行业`)
|
|
currentSelect.value.push(val)
|
|
currentSelect.value.push(val)
|
|
idChecked.value.push(val.id)
|
|
idChecked.value.push(val.id)
|
|
} else {
|
|
} else {
|