front_foundation #5

Open
mohamed_maoulainine wants to merge 73 commits from front_foundation into main
Showing only changes of commit 4ef92efd0e - Show all commits

View File

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