Update Produk.vue

This commit is contained in:
dhilanradya 2025-08-29 09:42:36 +07:00
parent f0f570be21
commit 5217e2d703

View File

@ -141,7 +141,7 @@ const currentFotoIndex = ref(0);
// Fetch data awal
onMounted(async () => {
try {
const res = await axios.get("http://127.0.0.1:8000/api/produk");
const res = await axios.get("/api/produk");
products.value = res.data;
} catch (error) {
console.error("Gagal ambil data produk:", error);