From 683f58964cadd8cefd10393bd4d03d26de6041eb Mon Sep 17 00:00:00 2001 From: MengYX Date: Sat, 23 Nov 2019 19:22:32 +0800 Subject: [PATCH] Report Error Type --- src/App.vue | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/App.vue b/src/App.vue index ed436e5..d9a20b6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -151,15 +151,9 @@ title: '解锁成功', message: '成功解锁 ' + data.title }); - let _rp_data = { - original: file.name, - title: data.title, - album: data.album, - artist: data.artist, - mime: data.mime - }; + let _rp_data = [data.title, data.artist, data.album]; console.log(data); - window._paq.push(["trackEvent", "Unlock", "Success", JSON.stringify(_rp_data)]); + window._paq.push(["trackEvent", "Unlock", ext + "," + data.mime, JSON.stringify(_rp_data)]); } else { this.$notify.error({ title: '出现问题', @@ -167,7 +161,7 @@ ',参考使用提示', dangerouslyUseHTMLString: true }); - window._paq.push(["trackEvent", "Unlock", "Error", file.name]); + window._paq.push(["trackEvent", "Error", data.message, file.name]); } })(); },