feat:每日菜谱只筛选食堂

This commit is contained in:
dzc committed 2025-03-23 15:30:24 +08:00
1 parent 5bb6c9731b
commit ef7f19c07e
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -32,9 +32,11 @@ const selectId = defineModel()
export type Props = {
placeholder?: string
apiParams?: any
}
const props = withDefaults(defineProps<Props>(), {
placeholder: "请选择",
apiParams: {},
})
const queryForm = reactive<any>({
@@ -64,6 +66,7 @@ async function getOptions() {
state.loading = true
const _pa = {
...queryForm,
...props.apiParams,
}
const { data } = await mchApi.select(_pa)
state.options = data.records ?? []