Report Error Type

This commit is contained in:
MengYX 2019-11-23 19:22:32 +08:00
parent 0ca830e896
commit 683f58964c
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604

View File

@ -151,15 +151,9 @@
title: '解锁成功', title: '解锁成功',
message: '成功解锁 ' + data.title message: '成功解锁 ' + data.title
}); });
let _rp_data = { let _rp_data = [data.title, data.artist, data.album];
original: file.name,
title: data.title,
album: data.album,
artist: data.artist,
mime: data.mime
};
console.log(data); 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 { } else {
this.$notify.error({ this.$notify.error({
title: '出现问题', title: '出现问题',
@ -167,7 +161,7 @@
',参考<a target="_blank" href="https://github.com/ix64/unlock-music/wiki/使用提示">使用提示</a>', ',参考<a target="_blank" href="https://github.com/ix64/unlock-music/wiki/使用提示">使用提示</a>',
dangerouslyUseHTMLString: true dangerouslyUseHTMLString: true
}); });
window._paq.push(["trackEvent", "Unlock", "Error", file.name]); window._paq.push(["trackEvent", "Error", data.message, file.name]);
} }
})(); })();
}, },