Skip to content

Commit

Permalink
feature: 原子操作能力支持滚动执行 TencentBlueKing#446
Browse files Browse the repository at this point in the history
  • Loading branch information
hLinx committed Jul 12, 2022
1 parent 2270792 commit 68f6c0c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,16 @@
created () {
this.list = Object.freeze(this.data.rollingTasks);
this.selectBatch = this.data.runningBatchOrder;
this.isAutoSelectRunningBatch = true;
this.isAutoSelectRunningBatch = false;
},
mounted () {
this.initRender();
setTimeout(() => {
this.handleLocalChange(this.data.runningBatchOrder);
// url 上面有 batch 参数
const defaultBatch = parseInt(this.$route.query.batch, 10) < 0
? this.data.runningBatchOrder
: parseInt(this.$route.query.batch, 10);
this.handleLocalChange(defaultBatch);
this.isAutoSelectRunningBatch = true;
}, 300);
const resizeHandler = _.throttle(() => {
Expand Down

0 comments on commit 68f6c0c

Please sign in to comment.