Merge pull request #473 from crawlab-team/release

Release
This commit is contained in:
Marvin Zhang
2020-01-21 15:43:05 +08:00
committed by GitHub
2 changed files with 6 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,6 @@ export default {
}
},
async created () {
const res = await this.$request.get('/version')
this.version = res.data.data
sessionStorage.setItem('v', this.version)
}
}
</script>