commit
0cd86686e3
@ -58,10 +58,15 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
getTaskProgress().then(res => {
|
if (this.$route.path.startsWith("/s/")) {
|
||||||
this.dataList = res.data
|
return
|
||||||
this.$emit('update:task-count', this.dataList.length > 0)
|
}
|
||||||
})
|
if (this.$store.state.user.token) {
|
||||||
|
getTaskProgress().then(res => {
|
||||||
|
this.dataList = res.data
|
||||||
|
this.$emit('update:task-count', this.dataList.length > 0)
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
data(val) {
|
data(val) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user