moved images to assets folder

This commit is contained in:
2021-10-22 20:48:22 +02:00
parent 31bd026a86
commit 04fb8b7efe
294 changed files with 25 additions and 27 deletions

View File

@@ -134,7 +134,7 @@
<i v-if="match.parsed" class="far fa-chart-bar parsed" style="cursor: help"
title="Demo has been parsed for additional data"></i>
<img :alt="match.map ? match.map : 'Map not found'"
:src="match.map !== '' ? require('@/images/map_icons/map_icon_' + match.map + '.svg') : require('../images/map_icons/map_icon_lobby_mapveto.svg')"
:src="match.map !== '' ? require('../assets/images/map_icons/map_icon_' + match.map + '.svg') : require('../assets/images/map_icons/map_icon_lobby_mapveto.svg')"
:title="match.map"
class="map-icon">
</td>
@@ -250,7 +250,7 @@
</template>
<script>
import {onBeforeUnmount, onMounted, reactive, watch} from "vue";
import {onBeforeMount, onBeforeUnmount, reactive, watch} from "vue";
import {useStore} from "vuex";
import {
constructAvatarUrl,
@@ -293,6 +293,16 @@ export default {
}
})
onBeforeMount(() => {
if (Object.entries(store.state.playerDetails).length === 0) {
GetPlayer()
} else {
console.log(store.state.playerDetails)
SetPlayerData()
}
}
)
const SetPlayerData = () => {
data.tracked = store.state.playerDetails.tracked
if (store.state.playerDetails.matches)
@@ -379,23 +389,7 @@ export default {
watch(() => props.id, GetPlayer)
onMounted(() => {
setTimeout(() => {
if (Object.entries(store.state.playerDetails).length === 0) {
GetPlayer()
} else {
console.log(store.state.playerDetails)
SetPlayerData()
}
}, 200)
}
)
onBeforeUnmount(() => {
// store.commit({
// type: 'changeId64',
// id: store.state.playerDetails.steamid64
// })
store.commit('resetPlayerDetails')
})