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 = () => {