added economy-graph
This commit is contained in:
@@ -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`
|
||||
|
||||
|
||||
@@ -377,10 +377,10 @@ export default {
|
||||
)
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
store.commit({
|
||||
type: 'changeId64',
|
||||
data: store.state.playerDetails.steamid64
|
||||
})
|
||||
// store.commit({
|
||||
// type: 'changeId64',
|
||||
// id: store.state.playerDetails.steamid64
|
||||
// })
|
||||
store.commit('resetPlayerDetails')
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user