mirror of
https://github.com/NaiboWang/EasySpider.git
synced 2025-04-20 04:39:57 +08:00
Auto Update UI
This commit is contained in:
parent
b73a2a9954
commit
a003df9626
@ -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>
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user