mirror of
https://git.unlock-music.dev/um/web.git
synced 2025-07-07 06:52:09 +08:00
Add Analytics
Fix an error statement
This commit is contained in:
13
src/App.vue
13
src/App.vue
@ -140,11 +140,21 @@
|
||||
title: '解锁成功',
|
||||
message: '成功解锁 ' + data.title
|
||||
});
|
||||
let _rp_data = {
|
||||
original: data.original,
|
||||
title: data.title,
|
||||
album: data.album,
|
||||
artist: data.artist,
|
||||
mime: data.mime
|
||||
};
|
||||
console.log(data);
|
||||
_paq.push(["trackEvent", "Unlock", "Success", JSON.stringify(_rp_data)]);
|
||||
} else {
|
||||
this.$notify.error({
|
||||
title: '错误',
|
||||
message: '不支持此文件类型'
|
||||
message: '解析此文件时出现问题'
|
||||
});
|
||||
_paq.push(["trackEvent", "Unlock", "Error", file.name]);
|
||||
}
|
||||
|
||||
|
||||
@ -190,7 +200,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
Reference in New Issue
Block a user