Commit a404dc59 authored by 前端-许佳敏's avatar 前端-许佳敏

fix

parent 94e95ce1
...@@ -97,6 +97,8 @@ export function onRouteChange({ routes, matchedRoutes, location, action }) { ...@@ -97,6 +97,8 @@ export function onRouteChange({ routes, matchedRoutes, location, action }) {
const routeAuthUrls = getRouters() const routeAuthUrls = getRouters()
// 是否登录 // 是否登录
if (getAuth()) { if (getAuth()) {
console.log(location)
console.log(matchedRoutes)
if (routeAuthUrls.includes(location.pathname)) { if (routeAuthUrls.includes(location.pathname)) {
} else { } else {
......
...@@ -64,7 +64,7 @@ let timeChange: any; // 定时器 ...@@ -64,7 +64,7 @@ let timeChange: any; // 定时器
const actions = createFormActions() const actions = createFormActions()
const UserRegistry = () => { const UserRegistry = () => {
const [current, setCurrent] = useState(1) const [current, setCurrent] = useState(0)
const [subStep, setSubStep] = useState(false) const [subStep, setSubStep] = useState(false)
const stepList = [ const stepList = [
{ title: '填写信息', key: 'message', name: 'message' }, { title: '填写信息', key: 'message', name: 'message' },
......
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