เพิ่ม interface
This commit is contained in:
parent
1bbadfe271
commit
3664bff957
3 changed files with 28 additions and 10 deletions
|
|
@ -21,11 +21,15 @@ const props = defineProps({
|
|||
});
|
||||
|
||||
const titleReport = ref<string>("");
|
||||
interface Optionround {
|
||||
profileId: string;
|
||||
id: string;
|
||||
}
|
||||
|
||||
const downloadDocument = async (type: string) => {
|
||||
let round = [];
|
||||
if (props.optionRound) {
|
||||
round = props.optionRound.find((e: any) => e.id === props.round);
|
||||
round = props.optionRound.find((e: Optionround) => e.id === props.round);
|
||||
}
|
||||
titleReport.value = round.name;
|
||||
const download: boolean = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue