fix: change hardcoded axios url
This commit is contained in:
@@ -22,7 +22,7 @@ import {onMounted, ref} from "vue";
|
||||
const products = ref([]);
|
||||
|
||||
onMounted(async () => {
|
||||
const {data} = await $fetch('http://localhost:8000/index.php?route=tgshop/handle&api_action=products');
|
||||
const {data} = await $fetch('https://ocstore.nikitakiselev.ru/index.php?route=extension/tgshop/handle&api_action=products');
|
||||
products.value = data;
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user