From 24d220c80a5ed8cc9b7885fd3a74f92934a9e9e7 Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Thu, 30 Dec 2021 18:19:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E9=85=8D=E7=BD=AE=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E7=B3=BB=E7=BB=9F=E9=87=8C=E5=88=A0=E9=99=A4=E4=B8=8E?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4=E5=81=9A=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/serve/projectList.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/serve/projectList.vue b/src/views/serve/projectList.vue index a9b62cd..5c97c6a 100644 --- a/src/views/serve/projectList.vue +++ b/src/views/serve/projectList.vue @@ -278,8 +278,14 @@ export default { type: 'warning' }).then(() => { this.$post(`${this.api.deleteProjectManage}?projectIds=${ids}&platformId=${this.queryData.platformId}`).then(res => { - if (res.status === 200) { - let delList = ids.split(',') + console.log(ids) + if (res.status == 200) { + let delList = [] + if (isNaN(ids) == 'NaN'){ + delList = ids.split(',') + }else{ + delList.push(ids) + } if(delList.length == this.listData.length){ if(this.page > 1){ this.page = this.page-1