Commit c28bc816 authored by Gavin Peng's avatar Gavin Peng

fix: 按钮权限组件错误提交

parent e99dab1c
......@@ -25,7 +25,7 @@ const AuthButton = (props: AuthButtonProps) => {
const RoutesAuth = auth.filter((item: any) => item?.u === pathname)
const _authorityBtn = () => {
// 本地开发时直接开放权限
// if (process.env.NODE_ENV === "development") return true
if (process.env.NODE_ENV === "development") return true
// 校验权限
if (RoutesAuth.length > 0) {
const { b } = RoutesAuth[0];
......
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