From 9a3164e38691cb3fd2ae91e9f922dda224e140bc Mon Sep 17 00:00:00 2001 From: Chengliang <1546584672@qq.com> Date: Thu, 3 Nov 2022 14:33:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/organization/stores/managerDetach.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pc4mobx/organization/stores/managerDetach.js b/pc4mobx/organization/stores/managerDetach.js index 6f3e7a4..3af8f26 100644 --- a/pc4mobx/organization/stores/managerDetach.js +++ b/pc4mobx/organization/stores/managerDetach.js @@ -61,8 +61,10 @@ export class ManagerDetachStore { Api.getSearchList(params).then(res => { if (res.code === 200) { this.setHasRight(res.data.hasRight); - this.isDetach = res.data.isDetach; - isOnChange ? this.tableStore.getDatas(res.data.datas, current) : this.tableStore.getDatas(res.data.datas,1); + if(res.data.hasRight) { + this.isDetach = res.data.isDetach; + isOnChange ? this.tableStore.getDatas(res.data.datas, current) : this.tableStore.getDatas(res.data.datas,1); + } } else { message.warning(res.msg); }