新增个人车辆增加两辆车限制

master
LiuJiaNan 2026-03-27 10:04:28 +08:00
parent 5654adf8e9
commit 181ba78374
2 changed files with 8 additions and 0 deletions

View File

@ -43,6 +43,10 @@ function List(props) {
icon={(<AddIcon />)}
type="primary"
onClick={() => {
if (tableProps.dataSource.length >= 2) {
message.warning("最多添加两辆车");
return;
}
props.history.push("./add");
}}
>

View File

@ -58,6 +58,10 @@ function List(props) {
icon={(<AddIcon />)}
type="primary"
onClick={() => {
if (tableProps.dataSource.length >= 2) {
message.warning("最多添加两辆车");
return;
}
props.history.push("./add");
}}
>