修改菜品分类接口

This commit is contained in:
ctw committed 2025-01-17 15:00:14 +08:00
1 parent 373de198e4
commit 0fa67d4d02
5 files changed
+54 -51

No files matched your search

+3 -6
View File
@@ -26,7 +26,7 @@
<script setup lang="ts" name="select-merchant">
import { reactive } from "vue"
import { fetchList as getCanteenCategory } from "/@/api/canteen/canteenCategory"
import { getAllSimple as getCanteenCategory } from "/@/api/canteen/canteenCategory"
const selectId = defineModel()
@@ -37,10 +37,7 @@ const props = withDefaults(defineProps<Props>(), {
placeholder: "请选择",
})
const queryForm = reactive<any>({
current: 1,
size: 9999,
})
const queryForm = reactive<any>({})
const state = reactive<any>({
loading: true,
@@ -65,7 +62,7 @@ async function getOptions() {
...queryForm,
}
const { data } = await getCanteenCategory(_pa)
state.options = data.records ?? []
state.options = data ?? []
} finally {
setTimeout(() => (state.loading = false), 500)
}