Merge branch 'master' of github.com:KevinMidboe/vinlottis

This commit is contained in:
2020-01-23 09:30:53 +01:00
13 changed files with 167 additions and 111 deletions

View File

@@ -9,11 +9,12 @@ export default {
async mounted() {
let canvas = this.$refs["win-chart"].getContext("2d");
let _response = undefined
if (process.env.NODE_ENV == 'development') {
_response = await fetch("http://localhost:30030/api/purchase/statistics/color");
}
else {
let _response = undefined;
if (process.env.NODE_ENV == "development") {
_response = await fetch(
"http://localhost:30030/api/purchase/statistics/color"
);
} else {
_response = await fetch("/api/purchase/statistics/color");
}
let response = await _response.json();