修复接口管理修改错位问题
This commit is contained in:
parent
b8aee98468
commit
3790ada0f1
@ -1653,7 +1653,8 @@
|
||||
openApiDialogForEdit: function (index) {
|
||||
var actualIndex =
|
||||
(this.apiPagination.currentPage - 1) * this.apiPagination.pageSize + index;
|
||||
var item = this.apiList[actualIndex];
|
||||
var item = this.filteredApiList[actualIndex];
|
||||
if (!item) return;
|
||||
this.apiDialog.mode = "edit";
|
||||
this.apiDialog.editingIndex = actualIndex;
|
||||
this.apiDialog.form = {
|
||||
@ -1692,7 +1693,8 @@
|
||||
removeApiItem: async function (index) {
|
||||
var actualIndex =
|
||||
(this.apiPagination.currentPage - 1) * this.apiPagination.pageSize + index;
|
||||
var item = this.apiList[actualIndex];
|
||||
var item = this.filteredApiList[actualIndex];
|
||||
if (!item) return;
|
||||
try {
|
||||
await this.$confirm("确定删除接口「" + item.name + "」?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
|
||||
1
mock/你好33333333333_wr0mdksb.json
Normal file
1
mock/你好33333333333_wr0mdksb.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
||||
Loading…
x
Reference in New Issue
Block a user