fix(项目管理): 修复环境参数的缺陷

--bug=1039380 --user=王孝刚 【项目环境】通用变量处存在分页,在其他页输入参数名后,点击后面输入框,会跳转到第一页
https://www.tapd.cn/55049933/s/1499947
This commit is contained in:
wxg0103 2024-04-17 17:34:56 +08:00 committed by Craftsman
parent f66fcbb6fc
commit 2d17ce3d6e
1 changed files with 3 additions and 4 deletions

View File

@ -431,9 +431,8 @@ export default {
scope: "api", scope: "api",
}) })
); );
this.currentPage = Math.ceil(this.items.length / this.pageSize);
} }
this.filter(); this.filter(this.currentPage);
// //
this.$emit("change", this.items); 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.allData = [];
this._filter(); this._filter();
this.sortParameters(); this.sortParameters();