Commit 3090b507 by Jaxon

fix(taskCenter): 为详情查看方法添加try catch捕获埋点上报错误

避免埋点上报失败导致路由跳转被阻断,确保用户可正常查看详情
1 parent 4effdd84
...@@ -249,7 +249,11 @@ export default { ...@@ -249,7 +249,11 @@ export default {
}, },
// 查看 // 查看
async handleDetail({ taskId, bizTypeName, bizType }) { async handleDetail({ taskId, bizTypeName, bizType }) {
this.setReportTrackData(0, "task_web_view_detail", { taskId, bizTypeName, bizType }); try {
this.setReportTrackData(0, "task_web_view_detail", { taskId, bizTypeName, bizType });
} catch (err) {
console.log(err);
}
this.$router.push({ this.$router.push({
path: "/resident-manage/task-center/detail", path: "/resident-manage/task-center/detail",
query: { query: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!