修复接口管理修改错位问题
This commit is contained in:
+4
-2
@@ -1653,7 +1653,8 @@
|
|||||||
openApiDialogForEdit: function (index) {
|
openApiDialogForEdit: function (index) {
|
||||||
var actualIndex =
|
var actualIndex =
|
||||||
(this.apiPagination.currentPage - 1) * this.apiPagination.pageSize + index;
|
(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.mode = "edit";
|
||||||
this.apiDialog.editingIndex = actualIndex;
|
this.apiDialog.editingIndex = actualIndex;
|
||||||
this.apiDialog.form = {
|
this.apiDialog.form = {
|
||||||
@@ -1692,7 +1693,8 @@
|
|||||||
removeApiItem: async function (index) {
|
removeApiItem: async function (index) {
|
||||||
var actualIndex =
|
var actualIndex =
|
||||||
(this.apiPagination.currentPage - 1) * this.apiPagination.pageSize + index;
|
(this.apiPagination.currentPage - 1) * this.apiPagination.pageSize + index;
|
||||||
var item = this.apiList[actualIndex];
|
var item = this.filteredApiList[actualIndex];
|
||||||
|
if (!item) return;
|
||||||
try {
|
try {
|
||||||
await this.$confirm("确定删除接口「" + item.name + "」?", "提示", {
|
await this.$confirm("确定删除接口「" + item.name + "」?", "提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
{}
|
||||||
Reference in New Issue
Block a user