fix: change hardcoded axios url
This commit is contained in:
9
.github/workflows/main.yaml
vendored
9
.github/workflows/main.yaml
vendored
@@ -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:
|
||||||
|
|||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user