feat: 修改埋点
This commit is contained in:
@@ -37,7 +37,7 @@ function startStudy() {
|
||||
if (!base.sbook.articles.length) {
|
||||
return ElMessage.warning('没有文章可学习!')
|
||||
}
|
||||
window.umami.track('startStudyArticle', {
|
||||
window.umami?.track('startStudyArticle', {
|
||||
name: base.sbook.name,
|
||||
index: base.sbook.lastLearnIndex,
|
||||
custom: base.sbook.custom,
|
||||
@@ -45,7 +45,7 @@ function startStudy() {
|
||||
})
|
||||
nav('/study-article')
|
||||
} else {
|
||||
window.umami.track('no-book')
|
||||
window.umami?.track('no-book')
|
||||
ElMessage.warning('请先选择一本书籍')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ function startStudy() {
|
||||
if (!store.sdict.words.length) {
|
||||
return ElMessage.warning('没有单词可学习!')
|
||||
}
|
||||
window.umami.track('startStudyDict', {
|
||||
window.umami?.track('startStudyDict', {
|
||||
name: store.sdict.name,
|
||||
index: store.sdict.lastLearnIndex,
|
||||
perDayStudyNumber: store.sdict.perDayStudyNumber,
|
||||
@@ -57,7 +57,7 @@ function startStudy() {
|
||||
})
|
||||
nav('study-word', {}, currentStudy)
|
||||
} else {
|
||||
window.umami.track('no-dict')
|
||||
window.umami?.track('no-dict')
|
||||
ElMessage.warning('请先选择一本词典')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user