Auto Update UI

This commit is contained in:
naibo 2023-07-08 06:16:18 +08:00
parent b73a2a9954
commit a003df9626
3 changed files with 13 additions and 2 deletions

View File

@ -528,7 +528,7 @@
<option value = 1>Random wait (set to wait for 10 seconds then it will randomly wait for 10 × 0.5 - 10 × 1.5 seconds)</option>
</select>
</div>
<button class="btn btn-outline-primary" style="margin-top: 20px;" id="confirm">Confirm</button>
<!-- <button class="btn btn-outline-primary" style="margin-top: 20px;" id="confirm">Confirm</button>-->
</div>

View File

@ -69,6 +69,12 @@ let app = new Vue({
}
}
},
nowNode:{
deep:true,
handler: function(newVal, oldVal) {
updateUI();
}
},
loopType: { //循环类型发生变化的时候更新参数值
handler: function(newVal, oldVal) {
this.nowNode["parameters"]["loopType"] = newVal;
@ -92,6 +98,11 @@ let app = new Vue({
codeMode: {
handler: function(newVal, oldVal) {
this.nowNode["parameters"]["codeMode"] = newVal;
if(newVal == 3){
this.nowNode["title"] = LANG("退出循环", "Exit Loop");
} else {
this.nowNode["title"] = LANG("自定义操作", "Custom Operation");
}
}
}
},

View File

@ -528,7 +528,7 @@
<option value = 1>随机等待设置等10秒会随机等10×0.5 - 10 × 1.5 秒)</option>
</select>
</div>
<button class="btn btn-outline-primary" style="margin-top: 20px;" id="confirm">确定</button>
<!-- <button class="btn btn-outline-primary" style="margin-top: 20px;" id="confirm">确定</button>-->
</div>