fix(项目管理): 修复环境参数的缺陷
--bug=1039380 --user=王孝刚 【项目环境】通用变量处存在分页,在其他页输入参数名后,点击后面输入框,会跳转到第一页 https://www.tapd.cn/55049933/s/1499947
This commit is contained in:
parent
f66fcbb6fc
commit
2d17ce3d6e
|
@ -431,9 +431,8 @@ export default {
|
|||
scope: "api",
|
||||
})
|
||||
);
|
||||
this.currentPage = Math.ceil(this.items.length / this.pageSize);
|
||||
}
|
||||
this.filter();
|
||||
this.filter(this.currentPage);
|
||||
|
||||
// 触发变更事件
|
||||
this.$emit("change", this.items);
|
||||
|
@ -593,9 +592,9 @@ export default {
|
|||
}
|
||||
);
|
||||
},
|
||||
filter() {
|
||||
filter(currentPage) {
|
||||
// 过滤
|
||||
this.currentPage = 1;
|
||||
this.currentPage = typeof currentPage === "number" ? currentPage : 1;
|
||||
this.allData = [];
|
||||
this._filter();
|
||||
this.sortParameters();
|
||||
|
|
Loading…
Reference in New Issue