From f45bfe218451d1eb29d18e902b4cb5a41ee12529 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sat, 19 Oct 2019 23:24:05 +0200 Subject: Fix relative axios --- pages/kronika/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pages/kronika/index.vue') diff --git a/pages/kronika/index.vue b/pages/kronika/index.vue index 20341e9..4a89a48 100644 --- a/pages/kronika/index.vue +++ b/pages/kronika/index.vue @@ -33,7 +33,7 @@ export default { getPosts() { if (this.posts.length < 1) { this.$axios - .get(`${process.env.baseUrl}/api/posts.json`) + .get(`${window.location.origin}/api/posts.json`) .then(r => (this.posts = r.data)) } console.log(this.posts) -- cgit 1.4.1