fix: change hardcoded axios url

This commit is contained in:
Nikita Kiselev
2025-07-10 20:58:03 +03:00
parent bbf2b9e294
commit 4bb983e4af
2 changed files with 10 additions and 1 deletions

View File

@@ -67,6 +67,15 @@ jobs:
- name: Rename artifact file - name: Rename artifact file
run: mv ./build/oc_telegram_shop.ocmod.zip ./build/${{ steps.meta.outputs.filename }} run: mv ./build/oc_telegram_shop.ocmod.zip ./build/${{ steps.meta.outputs.filename }}
- name: Delete existing GitHub release and tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG=${{ steps.meta.outputs.tag }}
echo "⛔ Deleting existing release and tag (if any): $TAG"
gh release delete "$TAG" --cleanup-tag --yes || true
git push origin ":refs/tags/$TAG" || true
- name: Create GitHub Release - name: Create GitHub Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:

View File

@@ -22,7 +22,7 @@ import {onMounted, ref} from "vue";
const products = ref([]); const products = ref([]);
onMounted(async () => { 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; products.value = data;
}); });
</script> </script>