From 936e299065b8ce4b2ff0b5f60ef665b70a6beddb Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 19 Jun 2023 07:56:47 +0000 Subject: [PATCH] style: format code with prettier and standardjs Format code with prettier and standardjs This commit fixes the style issues introduced in e7393e7 according to the output from Prettier and StandardJS. Details: https://app.deepsource.com/gh/wkylin/pro-react-admin/transform/1646af88-c75d-4570-a67a-a957b9c11a28/ --- src/routers/authRouter.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routers/authRouter.jsx b/src/routers/authRouter.jsx index 1c17c0b3..00c36365 100644 --- a/src/routers/authRouter.jsx +++ b/src/routers/authRouter.jsx @@ -9,11 +9,11 @@ const AuthRouter = (props) => { if (!route?.auth) return props.children const { token } = getLocalStorage('token') || { token: null } - if (!token) return + if (!token) return // * 后端返回有权限路由列表 暂时硬编码 需要结合 proSecNav组件中的menuItems const routerList = ['/', '/home', '/demo', '/parallax', '/dashboard', '/tilt', '/prism'] - if (routerList.indexOf(pathname) === -1) return + if (routerList.indexOf(pathname) === -1) return return props.children }