added economy-graph

This commit is contained in:
cnachtigall1991
2021-10-19 12:40:17 +02:00
parent bb3da7d3c4
commit f9391bfa10
8 changed files with 124 additions and 61 deletions

View File

@@ -87,10 +87,9 @@
<script>
import {onBeforeMount, onBeforeUnmount, onMounted, reactive, watch} from "vue";
import axios from 'axios'
import {DisplayRank, FormatFullDate, GetAvgRank, GoToLink, LoadImage} from "../utils";
import {DisplayRank, FixMapName, FormatFullDate, GetAvgRank, GoToLink, LoadImage} from "../utils";
import {useStore} from "vuex";
import {useRoute} from 'vue-router'
import {MAPNAMES} from "../constants";
export default {
name: 'Match',
@@ -117,7 +116,7 @@ export default {
.get(`${process.env.VUE_APP_API_URL}/match/${props.match_id}`)
.then((response) => {
if (response.data.map)
document.title = `${MAPNAMES[response.data.map]} | csgoWTF`
document.title = `${FixMapName(response.data.map)} | csgoWTF`
else
document.title = `Match-Details | csgoWTF`