Update Produk.vue
This commit is contained in:
parent
f0f570be21
commit
5217e2d703
@ -50,7 +50,7 @@
|
||||
>
|
||||
<div
|
||||
class="bg-white rounded-lg shadow-lg p-6 w-[450px] border-2 border-[#e6d3b3] relative flex flex-col items-center"
|
||||
|
||||
|
||||
>
|
||||
<!-- Foto Produk -->
|
||||
<div class="relative w-72 h-72 border border-[#e6d3b3] flex items-center justify-center mb-3 overflow-hidden rounded">
|
||||
@ -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