提前触发

This commit is contained in:
nisen
2023-11-08 11:15:21 +08:00
parent 7be1b5b696
commit b635e03bc0

View File

@@ -333,7 +333,7 @@ export default {
if (xmlhttp.status == 200) { if (xmlhttp.status == 200) {
clearTimeout(timer); clearTimeout(timer);
$this.Internet = 1; $this.Internet = 1;
$this.$store.dispatch("userTrigger", { let event = {
key: "ViewCase",//后台的事件key 发布文章且审核通过 key: "ViewCase",//后台的事件key 发布文章且审核通过
title: '查看案例',//事件的标题 title: '查看案例',//事件的标题
parameters: "",//用户自定义参数 name:value,name:value parameters: "",//用户自定义参数 name:value,name:value
@@ -344,7 +344,8 @@ export default {
aid: this.userInfo.aid, //当前登录人的id aid: this.userInfo.aid, //当前登录人的id
aname: this.userInfo.name,//当前人的姓名 aname: this.userInfo.name,//当前人的姓名
status: 1 //状态直接写1 status: 1 //状态直接写1
}); }
$this.$store.dispatch("userTrigger", event);
$this.sendEventData(); $this.sendEventData();
} else { } else {
clearTimeout(timer); clearTimeout(timer);