Commit 72afc933 authored by XieZhiXiong's avatar XieZhiXiong

chore: 过滤掉选项值是0的下拉项

parent d0b846ac
......@@ -472,7 +472,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
}).then(res => {
if (res.code === 1000) {
const { data = [] } = res;
const options = data.map(item => ({ label: item.levelTag, value: item.level }));
const options = data.map(item => ({ label: item.levelTag, value: item.level })).filter((item) => item.value);
linkage.enum('level', options);
}
}).catch((err) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment