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

View File

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