From 27c04c927d7a4d4f6fe4889aecbb78e8ae79f4a9 Mon Sep 17 00:00:00 2001 From: "huanqing.shao" Date: Mon, 14 Oct 2019 21:20:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=BB=9F=E8=AE=A1=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/install-k8s.md | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/install/install-k8s.md b/install/install-k8s.md index da290f9..f577c2f 100644 --- a/install/install-k8s.md +++ b/install/install-k8s.md @@ -68,18 +68,8 @@ export default { } }, envOk () { - if (envOk) { - let e = { - hitType: 'event', - eventCategory: 'install-k8s', - eventAction: 'envOK', - eventLabel: '安装k8s-已确认环境符合条件' - } - if (window.ga) { - window.ga('send', e); - } else { - console.log('开发环境,不发送 ga event', e) - } + if (this.envOk) { + this.$sendGaEvent('install-k8s', 'envOk', '安装k8s-已确认环境符合条件') } } },