fix: 调整变量类型
- 将id相关类型由number修改为string,符合graphQL规范
This commit is contained in:
@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user