updated stats

This commit is contained in:
marvzhang
2020-01-21 15:40:03 +08:00
parent 18deb7de74
commit b101b8b8cd
2 changed files with 7 additions and 6 deletions

View File

@@ -34,10 +34,13 @@ export default {
}
},
methods: {},
created () {
this.$store.dispatch('setting/getSetting')
async created () {
await this.$store.dispatch('setting/getSetting')
},
mounted () {
async mounted () {
const res = await this.$request.get('/version')
this.version = res.data.data
sessionStorage.setItem('v', this.version)
window.setUseStats = (value) => {
document.querySelector('.el-message__closeBtn').click()
if (value === 1) {

View File

@@ -55,9 +55,7 @@ export default {
}
},
async created () {
const res = await this.$request.get('/version')
this.version = res.data.data
sessionStorage.setItem('v', this.version)
}
}
</script>