添加动态事件

This commit is contained in:
zhaofang
2022-09-14 15:15:19 +08:00
parent 4109cab4b4
commit 5146759a08
8 changed files with 127 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ import apiMessage from '@/api/system/message.js'
import apiCourse from "@/api/modules/course.js";
import apiBoeCourse from "@/api/boe/course.js";
import apiBoeLogout from "@/api/boe/login.js";
import apiStat from "@/api/phase2/stat.js";
const user = {
state: {
@@ -45,6 +46,13 @@ const user = {
},
},
actions: {
// /用户触发事件
userTrigger({ commit }, event) {
console.log(event,'event');
apiStat.sendEvent(event).then(res=>{
console.log(res,'userTrigger');
})
},
SetIntTimeNote({
commit
}, iden) {