Forgot to use newly declared url var.

This commit is contained in:
2020-07-19 16:19:00 +02:00
parent 29f1eef759
commit 06280b4fd9

View File

@@ -33,7 +33,7 @@ export default {
if (window.location.href.includes('localhost'))
url = 'http://localhost:30010'.concat(url)
fetch('http://localhost:30010/api/products')
fetch(url)
.then(resp => resp.json())
.then(products => this.products = products)
}