fix: 调整变量类型

- 将id相关类型由number修改为string,符合graphQL规范
This commit is contained in:
2025-12-02 14:33:10 +08:00
parent 4471851c62
commit dbe75ee080
2 changed files with 6 additions and 6 deletions

View File

@ -101,19 +101,19 @@
defineProps({
productTypeOptions: {
type: Array as () => Array<{ id: number; name: string }>,
type: Array as () => Array<DocumentListProductType>,
default: () => [],
},
productOptions: {
type: Array as () => Array<{ id: number; name: string }>,
type: Array as () => Array<DocumentListProduct>,
default: () => [],
},
});
const model = defineModel<{
keyword: string;
selectedType: number | null;
selectedProduct: number | null;
selectedType: string | null;
selectedProduct: string | null;
}>();
</script>

View File

@ -30,8 +30,8 @@
];
const filters = reactive({
selectedType: null as number | null,
selectedProduct: null as number | null,
selectedType: null as string | null,
selectedProduct: null as string | null,
keyword: '',
});