about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-19 23:24:05 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-19 23:24:05 +0200
commitf45bfe218451d1eb29d18e902b4cb5a41ee12529 (patch)
tree10a45179697a1578fd7ae4da32fbf837c4feaead
parent8a96114451118450d005566e273cd1c28500ff94 (diff)
downloadpuszcza-f45bfe218451d1eb29d18e902b4cb5a41ee12529.tar.gz
puszcza-f45bfe218451d1eb29d18e902b4cb5a41ee12529.zip
Fix relative axios
-rw-r--r--pages/kronika/index.vue2
1 files changed, 1 insertions, 1 deletions
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)