moved images to assets folder
This commit is contained in:
@@ -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')
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user