增加工作流全局埋点

This commit is contained in:
aixianling
2022-08-11 15:01:52 +08:00
parent 1711b37750
commit c08514c60f

View File

@@ -33,6 +33,7 @@
<script> <script>
import AiWorkflow from "./AiWorkflow"; import AiWorkflow from "./AiWorkflow";
import {mapActions} from "vuex"
export default { export default {
name: "add", name: "add",
@@ -55,6 +56,7 @@ export default {
} }
}, },
methods: { methods: {
...mapActions(['getWorkflowConfigs']),
getDetail() { getDetail() {
let {id} = this.$route.query let {id} = this.$route.query
id && this.instance.post("/app/appworkflowmanage/queryDetailById", null, { id && this.instance.post("/app/appworkflowmanage/queryDetailById", null, {
@@ -78,6 +80,7 @@ export default {
this.instance.post("/app/appworkflowmanage/addOrUpdate", {...this.form, config}).then(res => { this.instance.post("/app/appworkflowmanage/addOrUpdate", {...this.form, config}).then(res => {
if (res?.code == 0) { if (res?.code == 0) {
this.$message.success("提交成功!") this.$message.success("提交成功!")
this.getWorkflowConfigs()
this.back() this.back()
} }
}) })