mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 06:16:44 +08:00
添加动态事件
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user