From a085116ae9f5b109c0806b55c60a072db5b3c070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=AF=BA?= <1253070437@qq.com> Date: Sun, 26 Mar 2023 16:06:20 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E9=A6=96=E9=A1=B5=E4=B8=A4=E4=B8=AA=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E8=B6=85=E7=AE=A1=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=9B=B4=E5=A4=9A=E6=8C=89=E9=92=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snowy-admin-web/src/views/index/components/opLog.vue | 2 +- snowy-admin-web/src/views/index/components/visLog.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/snowy-admin-web/src/views/index/components/opLog.vue b/snowy-admin-web/src/views/index/components/opLog.vue index 040d1184..6b43f36f 100644 --- a/snowy-admin-web/src/views/index/components/opLog.vue +++ b/snowy-admin-web/src/views/index/components/opLog.vue @@ -25,7 +25,7 @@ // 是否展示更多按钮 const displayMore = () => { - return userInfo.roleCodeList && userInfo.roleCodeList.indexOf('super') !== -1 + return userInfo.roleCodeList && userInfo.roleCodeList.toString().indexOf('superAdmin') !== -1 } const seleOpLogList = () => { indexApi.indexOpLogList().then((data) => { diff --git a/snowy-admin-web/src/views/index/components/visLog.vue b/snowy-admin-web/src/views/index/components/visLog.vue index a3cd4864..c855bcd3 100644 --- a/snowy-admin-web/src/views/index/components/visLog.vue +++ b/snowy-admin-web/src/views/index/components/visLog.vue @@ -25,7 +25,7 @@ }) // 是否展示更多按钮 const displayMore = () => { - return userInfo.roleCodeList && userInfo.roleCodeList.indexOf('super') !== -1 + return userInfo.roleCodeList && userInfo.roleCodeList.toString().indexOf('superAdmin') !== -1 } // 查询数据 const seleVisLogList = () => {