From 88b6e5b36666e2224f10a7deb5b8ede96cd442c4 Mon Sep 17 00:00:00 2001 From: marvzhang Date: Mon, 24 Feb 2020 11:35:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/Settings/GitSettings.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/components/Settings/GitSettings.vue b/frontend/src/components/Settings/GitSettings.vue index 939c0a71..4a8c791b 100644 --- a/frontend/src/components/Settings/GitSettings.vue +++ b/frontend/src/components/Settings/GitSettings.vue @@ -219,6 +219,7 @@ export default { this.isGitSyncLoading = false await this.$store.dispatch('spider/getSpiderData', this.$route.params.id) } + this.$st.sendEv('爬虫详情', 'Git 设置', '同步') }, onReset () { this.$confirm( @@ -235,11 +236,13 @@ export default { const res = await this.$request.post(`/spiders/${this.spiderForm._id}/git/reset`) if (!res.data.error) { this.$message.success(this.$t('Git has been reset successfully')) + this.$st.sendEv('爬虫详情', 'Git 设置', '确认重置') } } finally { this.isGitResetLoading = false } }) + this.$st.sendEv('爬虫详情', 'Git 设置', '点击重置') }, async getSshPublicKey () { const res = await this.$request.get('/git/public-key') @@ -251,6 +254,7 @@ export default { el.setSelectionRange(0, this.sshPublicKey.length) document.execCommand('copy') this.$message.success(this.$t('SSH Public Key is copied to the clipboard')) + this.$st.sendEv('爬虫详情', 'Git 设置', '拷贝 SSH 公钥') } }, async created () {