Merge pull request #337 from jamebal/dev

fix: 分享链接一直跳转的问题
This commit is contained in:
jmal 2024-12-19 20:00:41 +08:00 committed by GitHub
commit 0cd86686e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,10 +58,15 @@ export default {
}
},
mounted() {
getTaskProgress().then(res => {
this.dataList = res.data
this.$emit('update:task-count', this.dataList.length > 0)
})
if (this.$route.path.startsWith("/s/")) {
return
}
if (this.$store.state.user.token) {
getTaskProgress().then(res => {
this.dataList = res.data
this.$emit('update:task-count', this.dataList.length > 0)
})
}
},
watch: {
data(val) {