|
@@ -152,6 +152,16 @@ export default {
|
|
mounted() {
|
|
mounted() {
|
|
this.nodeConfig = this.modelValue
|
|
this.nodeConfig = this.modelValue
|
|
const { delayType, triggerType } = this.nodeConfig
|
|
const { delayType, triggerType } = this.nodeConfig
|
|
|
|
+
|
|
|
|
+ // 检查 extendConfig 是否存在,如果不存在则初始化
|
|
|
|
+ if (!this.nodeConfig.hasOwnProperty('extendConfig')) {
|
|
|
|
+ this.nodeConfig.extendConfig = {
|
|
|
|
+ time: '', // 立即执行 time不用设置
|
|
|
|
+ args: '',
|
|
|
|
+ trigger: ''
|
|
|
|
+ }
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (triggerType === '1') return
|
|
if (triggerType === '1') return
|
|
const extendConfig = this.nodeConfig?.extendConfig?.time.split(':')
|
|
const extendConfig = this.nodeConfig?.extendConfig?.time.split(':')
|
|
if (delayType === '1') {
|
|
if (delayType === '1') {
|