fix: js to ts in header
This commit is contained in:
parent
550a51523f
commit
4ef92efd0e
@ -19,7 +19,7 @@
|
||||
</template>
|
||||
|
||||
|
||||
<script setup>
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from "vue";
|
||||
import axios from "axios";
|
||||
|
||||
@ -34,7 +34,7 @@ const toggleDropdown = () => {
|
||||
const fetchEntrepreneurs = async () => {
|
||||
try {
|
||||
const response = await axios.get("http://localhost:5000/entrepreneurs");
|
||||
entrepreneurEmails.value = response.data.map(e => e.email);
|
||||
entrepreneurEmails.value = response.data.map((e: { email: string }) => e.email);
|
||||
} catch (error) {
|
||||
console.error("Erreur lors de la récupération des entrepreneurs:", error);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user