Variables and colors

This commit is contained in:
Kasper Rynning-Tønnesen
2020-01-23 09:29:50 +01:00
parent 60d3f4de85
commit 84aef89bbb
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();