feat:每日菜谱只筛选食堂
This commit is contained in:
1 parent
5bb6c9731b
commit
ef7f19c07e
2 files changed
+4
-1
No files matched your search
@@ -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 ?? []
|
||||
|
||||
Reference in new issue
Block a user