chore: 分类条件

This commit is contained in:
dap 2024-12-18 11:06:29 +08:00
parent d28cf0d98f
commit 728f4339e6

View File

@ -91,9 +91,9 @@ const gridOptions: VxeGridProps = {
query: async ({ page }, formValues = {}) => {
//
if (selectedCode.value.length === 1) {
formValues.categoryCode = selectedCode.value[0];
formValues.category = selectedCode.value[0];
} else {
Reflect.deleteProperty(formValues, 'categoryCode');
Reflect.deleteProperty(formValues, 'category');
}
return await currentTypeApi({