feat:前后定义 的空值置换数组 全部都添加
This commit is contained in:
@ -707,6 +707,9 @@ const columns = ref([
|
||||
]);
|
||||
|
||||
const addGlobalStartEvent = () => {
|
||||
if(!processInfo.value.globalStartEventConfigs) {
|
||||
processInfo.value.globalStartEventConfigs = [];
|
||||
}
|
||||
processInfo.value.globalStartEventConfigs.push({
|
||||
type: NodeEventExType.API,
|
||||
apiConfig: {},
|
||||
@ -717,6 +720,9 @@ const deleteStartEvent = (index) => {
|
||||
processInfo.value.globalStartEventConfigs.splice(index, 1);
|
||||
};
|
||||
const addGlobalEndEvent = () => {
|
||||
if(!processInfo.value.globalEndEventConfigs) {
|
||||
processInfo.value.globalEndEventConfigs = [];
|
||||
}
|
||||
processInfo.value.globalEndEventConfigs.push({
|
||||
type: NodeEventExType.API,
|
||||
apiConfig: {},
|
||||
@ -728,6 +734,9 @@ const deleteEndEvent = (index) => {
|
||||
};
|
||||
|
||||
const addGlobalPrequalifyBeforeEvent = () => {
|
||||
if(!processInfo.value.globalPrequalifyBeforeEventConfigs) {
|
||||
processInfo.value.globalPrequalifyBeforeEventConfigs = [];
|
||||
}
|
||||
processInfo.value.globalPrequalifyBeforeEventConfigs.push({
|
||||
type: NodeEventExType.API,
|
||||
apiConfig: {},
|
||||
@ -739,6 +748,9 @@ const deletePrequalifyBeforeEvent = (index) => {
|
||||
};
|
||||
|
||||
const addGlobalPrequalifyAfterEvent = () => {
|
||||
if(!processInfo.value.globalPrequalifyAfterEventConfigs) {
|
||||
processInfo.value.globalPrequalifyAfterEventConfigs = [];
|
||||
}
|
||||
processInfo.value.globalPrequalifyAfterEventConfigs.push({
|
||||
type: NodeEventExType.API,
|
||||
apiConfig: {},
|
||||
|
||||
Reference in New Issue
Block a user