加入埋点

This commit is contained in:
marvzhang
2020-07-19 17:38:52 +08:00
parent 6c098c7095
commit 8b33bf93da

View File

@@ -152,6 +152,9 @@
this.getRepos()
}
},
async created() {
await this.getRepos()
},
methods: {
async getRepos() {
this.isLoading = true
@@ -182,6 +185,7 @@
try {
await this.download(fullName || row.full_name)
this.$message.success('Downloaded successfully')
this.$st.sendEv('爬虫市场', '下载仓库')
} finally {
this.$set(row, 'loading', false)
}
@@ -202,6 +206,7 @@
})
this.$set(this.subDirCache, row.full_name, res.data.data)
}
this.$st.sendEv('爬虫市场', '点击展开')
},
getSubDirList(row) {
if (!this.subDirCache[row.full_name]) return []
@@ -212,9 +217,6 @@
}
})
}
},
async created() {
await this.getRepos()
}
}
</script>