Update Produk.vue
This commit is contained in:
parent
f0f570be21
commit
5217e2d703
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user