เพิ่ม interface

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-22 16:41:40 +07:00
parent 1bbadfe271
commit 3664bff957
3 changed files with 28 additions and 10 deletions

View file

@ -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;