Commit 74402e60 authored by xiexiuxing's avatar xiexiuxing

flx:修复按钮组建

parent 92ee9a25
...@@ -6,11 +6,11 @@ export const AuthUrl = (btnCode: string) => { ...@@ -6,11 +6,11 @@ export const AuthUrl = (btnCode: string) => {
const RoutesAuth = auth.filter((item: any) => item?.u === pathname) const RoutesAuth = auth.filter((item: any) => item?.u === pathname)
// console.log(AuthCode, 'AuthCode') // console.log(AuthCode, 'AuthCode')
if (btnCode === 'DevTest') return true
// 本地开发时传的特殊标识,直接开放权限 // 本地开发时传的特殊标识,直接开放权限
if (RoutesAuth.length > 0) { if (RoutesAuth.length > 0) {
const { b } = RoutesAuth[0]; const { b } = RoutesAuth[0];
// 本地开发时传的特殊标识,直接开放权限 // 本地开发时传的特殊标识,直接开放权限
if (btnCode === 'DevTest') return true
for (let i = 0; i < b.length; i++) { for (let i = 0; i < b.length; i++) {
if (btnCode) { if (btnCode) {
// 是否有页面标识 // 是否有页面标识
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment