alitajs / umi-plugin-keep-alive

<KeepAlive> for umijs base on react-activation
https://www.npmjs.com/package/umi-plugin-keep-alive
MIT License
290 stars 23 forks source link

在pro4中使用keepAlive,打开多个tab页报错 #33

Closed huangshiqiang closed 3 years ago

huangshiqiang commented 3 years ago

在antd pro4中使用keepalive,打开一个tab页的时候正常,打开多个tab页的时候报以下错误信息: 使用方式:

  1. yarn add umi-plugin-keep-alive
  2. 修改BasicLayout文件的主体区域,调整为tabs组件,在tabs组件中使用
  3. 我直接返回keepAlive也会报错。 import React, { useState, useEffect, useCallback } from 'react'; import { KeepAlive, history, useIntl } from 'umi';

const TabPages = (props) => { return (

{props.children}

); };

export default TabPages;

错误信息:

devScripts.js:5836 Warning: Cannot update a component (HooksConsumerBridge) while rendering a different component (PickerPanel). To locate the bad setState() call inside PickerPanel, follow the stack trace as described in https://fb.me/setstate-in-render in PickerPanel (created by LocaleReceiver) in div (created by LocaleReceiver) in LocaleReceiver (created by Calendar) in Calendar (at Calendar.jsx:15) in div (at Calendar.jsx:14) in div (at Calendar.jsx:13) in ReminderCalendar (at business/index.jsx:30) in div (at business/index.jsx:29) in Resizable (created by GridItem) in DraggableCore (created by GridItem) in GridItem (created by ReactGridLayout) in div (created by ReactGridLayout) in ReactGridLayout (created by ResponsiveReactGridLayout) in ResponsiveReactGridLayout (created by WidthProvider) in WidthProvider (at business/index.jsx:20) in Dragmanage (created by LoadableComponent) in LoadableComponent (created by Context.Consumer) in Route (created by Context.Consumer) in Switch (created by Context.Consumer) in Route (created by Context.Consumer) in Switch (created by Context.Consumer) in ProviderBridge (created by ProviderBridge) in ProviderBridge (created by ProviderBridge) in ProviderBridge (created by ProviderBridge) in ProviderBridge (created by ProviderBridge) in ProviderBridge (created by ProviderBridge) in ProviderBridge (created by ProviderBridge) in ProviderBridge (created by ProviderBridge) in ProviderBridge (created by ProviderBridge) in ProviderBridge (created by ProviderBridge) in ProviderBridge (created by ProviderBridge) in ProviderBridge (created by ProviderBridge) in ProviderBridge (created by ProviderBridge) in ProviderBridge (created by ProviderBridge) in ProviderBridge (created by ProviderBridge) in ProviderBridge (created by ProviderBridge) in ProviderBridge (created by ProviderBridge) in ProviderBridge (created by Bridge) in Suspense (created by SuspenseBridge) in SuspenseBridge (created by Bridge) in ErrorBoundaryBridge (created by Bridge) in Bridge (created by Keeper) in div (created by Keeper) in div (created by Keeper) in Keeper (created by AliveScope) in div (created by AliveScope) in AliveScope (at runtime.tsx:63) in Router (at runtime.tsx:62) in AliveRouterComponent (at runtime.tsx:70) in Provider (created by _DvaContainer) in _DvaContainer in Unknown in FormProvider (created by Context.Consumer) in LocaleProvider (created by Context.Consumer) in SizeContextProvider (created by Context.Consumer) in LocaleReceiver (created by ConfigProvider) in ConfigProvider (at locale.tsx:49) in _LocaleContainer in Unknown console. @ devScripts.js:5836 printWarning @ react-dom.development.js:88 error @ react-dom.development.js:60 warnAboutRenderPhaseUpdatesInDEV @ react-dom.development.js:23241 scheduleUpdateOnFiber @ react-dom.development.js:21165 dispatchAction @ react-dom.development.js:15660 updateListener @ index.js:617 (anonymous) @ EventBus.js:80 EventBus.emit @ EventBus.js:79 (anonymous) @ index.js:288 memoizedFunc @ memoize.js:30 (anonymous) @ index.js:303 memoizedFunc @ memoize.js:30 host. @ index.js:322 PickerPanel @ PickerPanel.js:396 renderWithHooks @ react-dom.development.js:14803 mountIndeterminateComponent @ react-dom.development.js:17482 beginWork @ react-dom.development.js:18596 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 scheduleUpdateOnFiber @ react-dom.development.js:21199 dispatchAction @ react-dom.development.js:15660 checkForUpdates @ use-subscription.development.js:87 (anonymous) @ index.esm.js:680 _update @ index.esm.js:679 (anonymous) @ index.esm.js:662 Promise.then (async) retry @ index.esm.js:661 LoadableSubscription @ index.esm.js:616 init @ index.esm.js:521 LoadableComponent @ index.esm.js:562 renderWithHooks @ react-dom.development.js:14803 updateForwardRef @ react-dom.development.js:16816 beginWork @ react-dom.development.js:18645 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 discreteUpdates$1 @ react-dom.development.js:21893 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 Show 3 more frames devScripts.js:5836 Warning: React has detected a change in the order of Hooks called by HooksConsumerBridge. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://fb.me/rules-of-hooks

Previous render Next render

  1. useState useState
  2. useEffect useEffect
  3. useContext useContext
  4. useRef useRef
  5. useRef useRef
  6. useEffect useEffect
  7. useContext useContext
  8. useRef useRef
  9. useRef useRef
  10. useEffect useEffect
  11. useContext useContext
  12. useRef useRef
  13. useRef useRef
  14. useEffect useEffect
  15. useContext useContext
  16. useRef useRef
  17. useRef useRef
  18. useEffect useEffect
  19. useContext useContext
  20. useRef useRef
  21. useRef useRef
  22. useEffect useEffect
  23. useContext useContext
  24. useRef useRef
  25. useRef useRef
  26. useEffect useEffect
  27. useContext useContext
  28. useRef useRef
  29. useRef useRef
  30. useEffect useEffect
  31. useContext useContext
  32. useRef useRef
  33. useRef useRef
  34. useEffect useEffect
  35. useContext useContext
  36. useRef useRef
  37. useRef useRef
  38. useEffect useEffect
  39. useContext useContext
  40. useRef useRef
  41. useRef useRef
  42. useEffect useEffect
  43. useContext useContext
  44. useRef useRef
  45. useRef useRef
  46. useEffect useEffect
  47. useContext useContext
  48. useRef useRef
  49. useRef useRef
  50. useEffect useEffect
  51. useContext useContext
  52. useRef useRef
  53. useRef useRef
  54. useEffect useEffect
  55. useContext useContext
  56. useRef useRef
  57. useRef useRef
  58. useEffect useEffect
  59. useContext useContext
  60. useRef useRef
  61. useRef useRef
  62. useEffect useEffect
  63. useContext useContext
  64. useRef useRef
  65. useRef useRef
  66. useEffect useEffect
  67. useContext useContext
  68. useRef useRef
  69. useRef useRef
  70. useEffect useEffect
  71. useContext useContext
  72. useRef useRef
  73. useRef useRef
  74. useEffect useEffect
  75. useContext useContext
  76. useRef useRef
  77. useRef useRef
  78. useEffect useEffect
  79. useContext useContext
  80. useRef useRef
  81. useRef useRef
  82. useEffect useEffect
  83. useContext useContext
  84. useRef useRef
  85. useRef useRef
  86. useEffect useEffect
  87. undefined useContext ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    in HooksConsumerBridge (created by LazyBridge) in LazyBridge (created by ErrorThrower) in ErrorThrower (created by Acceptor) in Acceptor (created by NodeKey) in NodeKey (created by HookExpand) in HookExpand (at TabPages/index.js:324) in div (at TabPages/index.js:323) in div (created by TabPane) in TabPane (at TabPages/index.js:318) in div (created by TabPanelList) in div (created by TabPanelList) in TabPanelList (created by ForwardRef(Tabs)) in div (created by ForwardRef(Tabs)) in ForwardRef(Tabs) (created by Tabs) in Tabs (at TabPages/index.js:298) in TabPages (at BasicLayout.tsx:291) in main (created by Basic) in Basic (created by Context.Consumer) in Content (created by WrapContent) in ConfigProviderWrap (created by WrapContent) in WrapContent (created by BasicLayout) in section (created by Context.Consumer) in BasicLayout (created by Context.Consumer) in Layout (created by BasicLayout) in section (created by Context.Consumer) in BasicLayout (created by Context.Consumer) in Layout (created by BasicLayout) in div (created by BasicLayout) in Provider (created by BasicLayout) in BasicLayout (at BasicLayout.tsx:190) in BasicLayout (created by LoadableComponent) in LoadableComponent (created by Context.Consumer) in Route (created by Context.Consumer) in Switch (created by Context.Consumer) in Layout (created by LoadableComponent) in LoadableComponent (created by Context.Consumer) in Route (created by AliveRouterComponent) in Switch (created by AliveRouterComponent) in AliveScope (at runtime.tsx:63) in Router (at runtime.tsx:62) in AliveRouterComponent (at runtime.tsx:70) in Provider (created by _DvaContainer) in _DvaContainer in Unknown in FormProvider (created by Context.Consumer) in LocaleProvider (created by Context.Consumer) in SizeContextProvider (created by Context.Consumer) in LocaleReceiver (created by ConfigProvider) in ConfigProvider (at locale.tsx:49) in _LocaleContainer in Unknown console. @ devScripts.js:5836 printWarning @ react-dom.development.js:88 error @ react-dom.development.js:60 warnOnHookMismatchInDev @ react-dom.development.js:14715 updateHookTypesDev @ react-dom.development.js:14674 useContext @ react-dom.development.js:15895 useContext @ react.development.js:1493 (anonymous) @ index.js:626 HooksConsumerBridge @ index.js:625 renderWithHooks @ react-dom.development.js:14803 updateFunctionComponent @ react-dom.development.js:17034 beginWork @ react-dom.development.js:18610 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 scheduleUpdateOnFiber @ react-dom.development.js:21199 dispatchAction @ react-dom.development.js:15660 checkForUpdates @ use-subscription.development.js:87 (anonymous) @ index.esm.js:680 _update @ index.esm.js:679 (anonymous) @ index.esm.js:662 Promise.then (async) retry @ index.esm.js:661 LoadableSubscription @ index.esm.js:616 init @ index.esm.js:521 LoadableComponent @ index.esm.js:562 renderWithHooks @ react-dom.development.js:14803 updateForwardRef @ react-dom.development.js:16816 beginWork @ react-dom.development.js:18645 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 discreteUpdates$1 @ react-dom.development.js:21893 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 2react-dom.development.js:14980 Uncaught Error: Rendered more hooks than during the previous render. at updateWorkInProgressHook (react-dom.development.js:14980) at updateRef (react-dom.development.js:15290) at Object.useRef (react-dom.development.js:15940) at Object.useRef (react.development.js:1505) at index.js:627 at Array.map () at HooksConsumerBridge (index.js:625) at renderWithHooks (react-dom.development.js:14803) at updateFunctionComponent (react-dom.development.js:17034) at beginWork (react-dom.development.js:18610) at HTMLUnknownElement.callCallback (react-dom.development.js:188) at Object.invokeGuardedCallbackDev (react-dom.development.js:237) at invokeGuardedCallback (react-dom.development.js:292) at beginWork$1 (react-dom.development.js:23203) at performUnitOfWork (react-dom.development.js:22154) at workLoopSync (react-dom.development.js:22130) at performSyncWorkOnRoot (react-dom.development.js:21756) at react-dom.development.js:11089 at unstable_runWithPriority (scheduler.development.js:653) at runWithPriority$1 (react-dom.development.js:11039) at flushSyncCallbackQueueImpl (react-dom.development.js:11084) at flushSyncCallbackQueue (react-dom.development.js:11072) at scheduleUpdateOnFiber (react-dom.development.js:21199) at dispatchAction (react-dom.development.js:15660) at checkForUpdates (use-subscription.development.js:87) at index.esm.js:680 at Set.forEach () at LoadableSubscription._update (index.esm.js:679) at index.esm.js:662 updateWorkInProgressHook @ react-dom.development.js:14980 updateRef @ react-dom.development.js:15290 useRef @ react-dom.development.js:15940 useRef @ react.development.js:1505 (anonymous) @ index.js:627 HooksConsumerBridge @ index.js:625 renderWithHooks @ react-dom.development.js:14803 updateFunctionComponent @ react-dom.development.js:17034 beginWork @ react-dom.development.js:18610 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 beginWork$1 @ react-dom.development.js:23203 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 scheduleUpdateOnFiber @ react-dom.development.js:21199 dispatchAction @ react-dom.development.js:15660 checkForUpdates @ use-subscription.development.js:87 (anonymous) @ index.esm.js:680 _update @ index.esm.js:679 (anonymous) @ index.esm.js:662 Promise.then (async) retry @ index.esm.js:661 LoadableSubscription @ index.esm.js:616 init @ index.esm.js:521 LoadableComponent @ index.esm.js:562 renderWithHooks @ react-dom.development.js:14803 updateForwardRef @ react-dom.development.js:16816 beginWork @ react-dom.development.js:18645 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 discreteUpdates$1 @ react-dom.development.js:21893 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 devScripts.js:5836 Unexpected key "@@dva" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "routing", "global", "login", "menuTree", "settings", "user", "taskIndex", "demo3", "dashboardAndanalysis", "dashboardAndmonitor", "dashboardAndworkplace", "userAndlogin", "userAndregister", "loading". Unexpected keys will be ignored. console. @ devScripts.js:5836 warning @ warning.js:10 combination @ combineReducers.js:110 dispatch @ createStore.js:165 replaceReducer @ createStore.js:195 unmodel @ index.js:135 (anonymous) @ dva.ts:74 componentWillUnmount @ dva.ts:73 callComponentWillUnmountWithTimer @ react-dom.development.js:19580 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 safelyCallComponentWillUnmount @ react-dom.development.js:19587 commitUnmount @ react-dom.development.js:20109 unmountHostComponents @ react-dom.development.js:20464 commitDeletion @ react-dom.development.js:20500 commitMutationEffects @ react-dom.development.js:22782 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 commitRootImpl @ react-dom.development.js:22509 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 commitRoot @ react-dom.development.js:22381 finishSyncRender @ react-dom.development.js:21807 performSyncWorkOnRoot @ react-dom.development.js:21793 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 scheduleUpdateOnFiber @ react-dom.development.js:21199 dispatchAction @ react-dom.development.js:15660 checkForUpdates @ use-subscription.development.js:87 (anonymous) @ index.esm.js:680 _update @ index.esm.js:679 (anonymous) @ index.esm.js:662 Promise.then (async) retry @ index.esm.js:661 LoadableSubscription @ index.esm.js:616 init @ index.esm.js:521 LoadableComponent @ index.esm.js:562 renderWithHooks @ react-dom.development.js:14803 updateForwardRef @ react-dom.development.js:16816 beginWork @ react-dom.development.js:18645 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 discreteUpdates$1 @ react-dom.development.js:21893 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 Show 7 more frames devScripts.js:5836 Unexpected keys "@@dva", "global" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "routing", "login", "menuTree", "settings", "user", "taskIndex", "demo3", "dashboardAndanalysis", "dashboardAndmonitor", "dashboardAndworkplace", "userAndlogin", "userAndregister", "loading". Unexpected keys will be ignored. console. @ devScripts.js:5836 warning @ warning.js:10 combination @ combineReducers.js:110 dispatch @ createStore.js:165 replaceReducer @ createStore.js:195 unmodel @ index.js:135 (anonymous) @ dva.ts:74 componentWillUnmount @ dva.ts:73 callComponentWillUnmountWithTimer @ react-dom.development.js:19580 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 safelyCallComponentWillUnmount @ react-dom.development.js:19587 commitUnmount @ react-dom.development.js:20109 unmountHostComponents @ react-dom.development.js:20464 commitDeletion @ react-dom.development.js:20500 commitMutationEffects @ react-dom.development.js:22782 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 commitRootImpl @ react-dom.development.js:22509 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 commitRoot @ react-dom.development.js:22381 finishSyncRender @ react-dom.development.js:21807 performSyncWorkOnRoot @ react-dom.development.js:21793 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 scheduleUpdateOnFiber @ react-dom.development.js:21199 dispatchAction @ react-dom.development.js:15660 checkForUpdates @ use-subscription.development.js:87 (anonymous) @ index.esm.js:680 _update @ index.esm.js:679 (anonymous) @ index.esm.js:662 Promise.then (async) retry @ index.esm.js:661 LoadableSubscription @ index.esm.js:616 init @ index.esm.js:521 LoadableComponent @ index.esm.js:562 renderWithHooks @ react-dom.development.js:14803 updateForwardRef @ react-dom.development.js:16816 beginWork @ react-dom.development.js:18645 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 discreteUpdates$1 @ react-dom.development.js:21893 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 Show 7 more frames devScripts.js:5836 Warning: [app.unmodel] subscription should return unlistener function, check these subscriptions setup console. @ devScripts.js:5836 warning @ browser.js:49 unlisten @ subscription.js:50 unmodel @ index.js:144 (anonymous) @ dva.ts:74 componentWillUnmount @ dva.ts:73 callComponentWillUnmountWithTimer @ react-dom.development.js:19580 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 safelyCallComponentWillUnmount @ react-dom.development.js:19587 commitUnmount @ react-dom.development.js:20109 unmountHostComponents @ react-dom.development.js:20464 commitDeletion @ react-dom.development.js:20500 commitMutationEffects @ react-dom.development.js:22782 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 commitRootImpl @ react-dom.development.js:22509 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 commitRoot @ react-dom.development.js:22381 finishSyncRender @ react-dom.development.js:21807 performSyncWorkOnRoot @ react-dom.development.js:21793 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 scheduleUpdateOnFiber @ react-dom.development.js:21199 dispatchAction @ react-dom.development.js:15660 checkForUpdates @ use-subscription.development.js:87 (anonymous) @ index.esm.js:680 _update @ index.esm.js:679 (anonymous) @ index.esm.js:662 Promise.then (async) retry @ index.esm.js:661 LoadableSubscription @ index.esm.js:616 init @ index.esm.js:521 LoadableComponent @ index.esm.js:562 renderWithHooks @ react-dom.development.js:14803 updateForwardRef @ react-dom.development.js:16816 beginWork @ react-dom.development.js:18645 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 discreteUpdates$1 @ react-dom.development.js:21893 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 Show 5 more frames devScripts.js:5836 Unexpected keys "@@dva", "global", "login" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "routing", "menuTree", "settings", "user", "taskIndex", "demo3", "dashboardAndanalysis", "dashboardAndmonitor", "dashboardAndworkplace", "userAndlogin", "userAndregister", "loading". Unexpected keys will be ignored. console. @ devScripts.js:5836 warning @ warning.js:10 combination @ combineReducers.js:110 dispatch @ createStore.js:165 replaceReducer @ createStore.js:195 unmodel @ index.js:135 (anonymous) @ dva.ts:74 componentWillUnmount @ dva.ts:73 callComponentWillUnmountWithTimer @ react-dom.development.js:19580 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 safelyCallComponentWillUnmount @ react-dom.development.js:19587 commitUnmount @ react-dom.development.js:20109 unmountHostComponents @ react-dom.development.js:20464 commitDeletion @ react-dom.development.js:20500 commitMutationEffects @ react-dom.development.js:22782 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 commitRootImpl @ react-dom.development.js:22509 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 commitRoot @ react-dom.development.js:22381 finishSyncRender @ react-dom.development.js:21807 performSyncWorkOnRoot @ react-dom.development.js:21793 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 scheduleUpdateOnFiber @ react-dom.development.js:21199 dispatchAction @ react-dom.development.js:15660 checkForUpdates @ use-subscription.development.js:87 (anonymous) @ index.esm.js:680 _update @ index.esm.js:679 (anonymous) @ index.esm.js:662 Promise.then (async) retry @ index.esm.js:661 LoadableSubscription @ index.esm.js:616 init @ index.esm.js:521 LoadableComponent @ index.esm.js:562 renderWithHooks @ react-dom.development.js:14803 updateForwardRef @ react-dom.development.js:16816 beginWork @ react-dom.development.js:18645 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 discreteUpdates$1 @ react-dom.development.js:21893 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 Show 7 more frames devScripts.js:5836 Unexpected keys "@@dva", "global", "login", "menuTree" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "routing", "settings", "user", "taskIndex", "demo3", "dashboardAndanalysis", "dashboardAndmonitor", "dashboardAndworkplace", "userAndlogin", "userAndregister", "loading". Unexpected keys will be ignored. console. @ devScripts.js:5836 warning @ warning.js:10 combination @ combineReducers.js:110 dispatch @ createStore.js:165 replaceReducer @ createStore.js:195 unmodel @ index.js:135 (anonymous) @ dva.ts:74 componentWillUnmount @ dva.ts:73 callComponentWillUnmountWithTimer @ react-dom.development.js:19580 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 safelyCallComponentWillUnmount @ react-dom.development.js:19587 commitUnmount @ react-dom.development.js:20109 unmountHostComponents @ react-dom.development.js:20464 commitDeletion @ react-dom.development.js:20500 commitMutationEffects @ react-dom.development.js:22782 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 commitRootImpl @ react-dom.development.js:22509 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 commitRoot @ react-dom.development.js:22381 finishSyncRender @ react-dom.development.js:21807 performSyncWorkOnRoot @ react-dom.development.js:21793 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 scheduleUpdateOnFiber @ react-dom.development.js:21199 dispatchAction @ react-dom.development.js:15660 checkForUpdates @ use-subscription.development.js:87 (anonymous) @ index.esm.js:680 _update @ index.esm.js:679 (anonymous) @ index.esm.js:662 Promise.then (async) retry @ index.esm.js:661 LoadableSubscription @ index.esm.js:616 init @ index.esm.js:521 LoadableComponent @ index.esm.js:562 renderWithHooks @ react-dom.development.js:14803 updateForwardRef @ react-dom.development.js:16816 beginWork @ react-dom.development.js:18645 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 discreteUpdates$1 @ react-dom.development.js:21893 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 Show 7 more frames devScripts.js:5836 Unexpected keys "@@dva", "global", "login", "menuTree", "settings" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "routing", "user", "taskIndex", "demo3", "dashboardAndanalysis", "dashboardAndmonitor", "dashboardAndworkplace", "userAndlogin", "userAndregister", "loading". Unexpected keys will be ignored. console. @ devScripts.js:5836 warning @ warning.js:10 combination @ combineReducers.js:110 dispatch @ createStore.js:165 replaceReducer @ createStore.js:195 unmodel @ index.js:135 (anonymous) @ dva.ts:74 componentWillUnmount @ dva.ts:73 callComponentWillUnmountWithTimer @ react-dom.development.js:19580 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 safelyCallComponentWillUnmount @ react-dom.development.js:19587 commitUnmount @ react-dom.development.js:20109 unmountHostComponents @ react-dom.development.js:20464 commitDeletion @ react-dom.development.js:20500 commitMutationEffects @ react-dom.development.js:22782 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 commitRootImpl @ react-dom.development.js:22509 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 commitRoot @ react-dom.development.js:22381 finishSyncRender @ react-dom.development.js:21807 performSyncWorkOnRoot @ react-dom.development.js:21793 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 scheduleUpdateOnFiber @ react-dom.development.js:21199 dispatchAction @ react-dom.development.js:15660 checkForUpdates @ use-subscription.development.js:87 (anonymous) @ index.esm.js:680 _update @ index.esm.js:679 (anonymous) @ index.esm.js:662 Promise.then (async) retry @ index.esm.js:661 LoadableSubscription @ index.esm.js:616 init @ index.esm.js:521 LoadableComponent @ index.esm.js:562 renderWithHooks @ react-dom.development.js:14803 updateForwardRef @ react-dom.development.js:16816 beginWork @ react-dom.development.js:18645 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 discreteUpdates$1 @ react-dom.development.js:21893 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 Show 7 more frames devScripts.js:5836 Unexpected keys "@@dva", "global", "login", "menuTree", "settings", "user" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "routing", "taskIndex", "demo3", "dashboardAndanalysis", "dashboardAndmonitor", "dashboardAndworkplace", "userAndlogin", "userAndregister", "loading". Unexpected keys will be ignored. console. @ devScripts.js:5836 warning @ warning.js:10 combination @ combineReducers.js:110 dispatch @ createStore.js:165 replaceReducer @ createStore.js:195 unmodel @ index.js:135 (anonymous) @ dva.ts:74 componentWillUnmount @ dva.ts:73 callComponentWillUnmountWithTimer @ react-dom.development.js:19580 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 safelyCallComponentWillUnmount @ react-dom.development.js:19587 commitUnmount @ react-dom.development.js:20109 unmountHostComponents @ react-dom.development.js:20464 commitDeletion @ react-dom.development.js:20500 commitMutationEffects @ react-dom.development.js:22782 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 commitRootImpl @ react-dom.development.js:22509 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 commitRoot @ react-dom.development.js:22381 finishSyncRender @ react-dom.development.js:21807 performSyncWorkOnRoot @ react-dom.development.js:21793 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 scheduleUpdateOnFiber @ react-dom.development.js:21199 dispatchAction @ react-dom.development.js:15660 checkForUpdates @ use-subscription.development.js:87 (anonymous) @ index.esm.js:680 _update @ index.esm.js:679 (anonymous) @ index.esm.js:662 Promise.then (async) retry @ index.esm.js:661 LoadableSubscription @ index.esm.js:616 init @ index.esm.js:521 LoadableComponent @ index.esm.js:562 renderWithHooks @ react-dom.development.js:14803 updateForwardRef @ react-dom.development.js:16816 beginWork @ react-dom.development.js:18645 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 discreteUpdates$1 @ react-dom.development.js:21893 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 Show 7 more frames devScripts.js:5836 Unexpected keys "@@dva", "global", "login", "menuTree", "settings", "user", "taskIndex" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "routing", "demo3", "dashboardAndanalysis", "dashboardAndmonitor", "dashboardAndworkplace", "userAndlogin", "userAndregister", "loading". Unexpected keys will be ignored. console. @ devScripts.js:5836 warning @ warning.js:10 combination @ combineReducers.js:110 dispatch @ createStore.js:165 replaceReducer @ createStore.js:195 unmodel @ index.js:135 (anonymous) @ dva.ts:74 componentWillUnmount @ dva.ts:73 callComponentWillUnmountWithTimer @ react-dom.development.js:19580 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 safelyCallComponentWillUnmount @ react-dom.development.js:19587 commitUnmount @ react-dom.development.js:20109 unmountHostComponents @ react-dom.development.js:20464 commitDeletion @ react-dom.development.js:20500 commitMutationEffects @ react-dom.development.js:22782 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 commitRootImpl @ react-dom.development.js:22509 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 commitRoot @ react-dom.development.js:22381 finishSyncRender @ react-dom.development.js:21807 performSyncWorkOnRoot @ react-dom.development.js:21793 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 scheduleUpdateOnFiber @ react-dom.development.js:21199 dispatchAction @ react-dom.development.js:15660 checkForUpdates @ use-subscription.development.js:87 (anonymous) @ index.esm.js:680 _update @ index.esm.js:679 (anonymous) @ index.esm.js:662 Promise.then (async) retry @ index.esm.js:661 LoadableSubscription @ index.esm.js:616 init @ index.esm.js:521 LoadableComponent @ index.esm.js:562 renderWithHooks @ react-dom.development.js:14803 updateForwardRef @ react-dom.development.js:16816 beginWork @ react-dom.development.js:18645 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 discreteUpdates$1 @ react-dom.development.js:21893 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 Show 7 more frames devScripts.js:5836 Unexpected keys "@@dva", "global", "login", "menuTree", "settings", "user", "taskIndex", "demo3" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "routing", "dashboardAndanalysis", "dashboardAndmonitor", "dashboardAndworkplace", "userAndlogin", "userAndregister", "loading". Unexpected keys will be ignored. console. @ devScripts.js:5836 warning @ warning.js:10 combination @ combineReducers.js:110 dispatch @ createStore.js:165 replaceReducer @ createStore.js:195 unmodel @ index.js:135 (anonymous) @ dva.ts:74 componentWillUnmount @ dva.ts:73 callComponentWillUnmountWithTimer @ react-dom.development.js:19580 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 safelyCallComponentWillUnmount @ react-dom.development.js:19587 commitUnmount @ react-dom.development.js:20109 unmountHostComponents @ react-dom.development.js:20464 commitDeletion @ react-dom.development.js:20500 commitMutationEffects @ react-dom.development.js:22782 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 commitRootImpl @ react-dom.development.js:22509 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 commitRoot @ react-dom.development.js:22381 finishSyncRender @ react-dom.development.js:21807 performSyncWorkOnRoot @ react-dom.development.js:21793 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 scheduleUpdateOnFiber @ react-dom.development.js:21199 dispatchAction @ react-dom.development.js:15660 checkForUpdates @ use-subscription.development.js:87 (anonymous) @ index.esm.js:680 _update @ index.esm.js:679 (anonymous) @ index.esm.js:662 Promise.then (async) retry @ index.esm.js:661 LoadableSubscription @ index.esm.js:616 init @ index.esm.js:521 LoadableComponent @ index.esm.js:562 renderWithHooks @ react-dom.development.js:14803 updateForwardRef @ react-dom.development.js:16816 beginWork @ react-dom.development.js:18645 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 discreteUpdates$1 @ react-dom.development.js:21893 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 Show 7 more frames devScripts.js:5836 Unexpected keys "@@dva", "global", "login", "menuTree", "settings", "user", "taskIndex", "demo3", "dashboardAndanalysis" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "routing", "dashboardAndmonitor", "dashboardAndworkplace", "userAndlogin", "userAndregister", "loading". Unexpected keys will be ignored. console. @ devScripts.js:5836 warning @ warning.js:10 combination @ combineReducers.js:110 dispatch @ createStore.js:165 replaceReducer @ createStore.js:195 unmodel @ index.js:135 (anonymous) @ dva.ts:74 componentWillUnmount @ dva.ts:73 callComponentWillUnmountWithTimer @ react-dom.development.js:19580 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 safelyCallComponentWillUnmount @ react-dom.development.js:19587 commitUnmount @ react-dom.development.js:20109 unmountHostComponents @ react-dom.development.js:20464 commitDeletion @ react-dom.development.js:20500 commitMutationEffects @ react-dom.development.js:22782 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 commitRootImpl @ react-dom.development.js:22509 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 commitRoot @ react-dom.development.js:22381 finishSyncRender @ react-dom.development.js:21807 performSyncWorkOnRoot @ react-dom.development.js:21793 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 scheduleUpdateOnFiber @ react-dom.development.js:21199 dispatchAction @ react-dom.development.js:15660 checkForUpdates @ use-subscription.development.js:87 (anonymous) @ index.esm.js:680 _update @ index.esm.js:679 (anonymous) @ index.esm.js:662 Promise.then (async) retry @ index.esm.js:661 LoadableSubscription @ index.esm.js:616 init @ index.esm.js:521 LoadableComponent @ index.esm.js:562 renderWithHooks @ react-dom.development.js:14803 updateForwardRef @ react-dom.development.js:16816 beginWork @ react-dom.development.js:18645 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 discreteUpdates$1 @ react-dom.development.js:21893 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 Show 7 more frames devScripts.js:5836 Unexpected keys "@@dva", "global", "login", "menuTree", "settings", "user", "taskIndex", "demo3", "dashboardAndanalysis", "dashboardAndmonitor" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "routing", "dashboardAndworkplace", "userAndlogin", "userAndregister", "loading". Unexpected keys will be ignored. console. @ devScripts.js:5836 warning @ warning.js:10 combination @ combineReducers.js:110 dispatch @ createStore.js:165 replaceReducer @ createStore.js:195 unmodel @ index.js:135 (anonymous) @ dva.ts:74 componentWillUnmount @ dva.ts:73 callComponentWillUnmountWithTimer @ react-dom.development.js:19580 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 safelyCallComponentWillUnmount @ react-dom.development.js:19587 commitUnmount @ react-dom.development.js:20109 unmountHostComponents @ react-dom.development.js:20464 commitDeletion @ react-dom.development.js:20500 commitMutationEffects @ react-dom.development.js:22782 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 commitRootImpl @ react-dom.development.js:22509 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 commitRoot @ react-dom.development.js:22381 finishSyncRender @ react-dom.development.js:21807 performSyncWorkOnRoot @ react-dom.development.js:21793 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 scheduleUpdateOnFiber @ react-dom.development.js:21199 dispatchAction @ react-dom.development.js:15660 checkForUpdates @ use-subscription.development.js:87 (anonymous) @ index.esm.js:680 _update @ index.esm.js:679 (anonymous) @ index.esm.js:662 Promise.then (async) retry @ index.esm.js:661 LoadableSubscription @ index.esm.js:616 init @ index.esm.js:521 LoadableComponent @ index.esm.js:562 renderWithHooks @ react-dom.development.js:14803 updateForwardRef @ react-dom.development.js:16816 beginWork @ react-dom.development.js:18645 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 discreteUpdates$1 @ react-dom.development.js:21893 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 Show 7 more frames devScripts.js:5836 Unexpected keys "@@dva", "global", "login", "menuTree", "settings", "user", "taskIndex", "demo3", "dashboardAndanalysis", "dashboardAndmonitor", "dashboardAndworkplace" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "routing", "userAndlogin", "userAndregister", "loading". Unexpected keys will be ignored. console. @ devScripts.js:5836 warning @ warning.js:10 combination @ combineReducers.js:110 dispatch @ createStore.js:165 replaceReducer @ createStore.js:195 unmodel @ index.js:135 (anonymous) @ dva.ts:74 componentWillUnmount @ dva.ts:73 callComponentWillUnmountWithTimer @ react-dom.development.js:19580 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 safelyCallComponentWillUnmount @ react-dom.development.js:19587 commitUnmount @ react-dom.development.js:20109 unmountHostComponents @ react-dom.development.js:20464 commitDeletion @ react-dom.development.js:20500 commitMutationEffects @ react-dom.development.js:22782 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 commitRootImpl @ react-dom.development.js:22509 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 commitRoot @ react-dom.development.js:22381 finishSyncRender @ react-dom.development.js:21807 performSyncWorkOnRoot @ react-dom.development.js:21793 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 scheduleUpdateOnFiber @ react-dom.development.js:21199 dispatchAction @ react-dom.development.js:15660 checkForUpdates @ use-subscription.development.js:87 (anonymous) @ index.esm.js:680 _update @ index.esm.js:679 (anonymous) @ index.esm.js:662 Promise.then (async) retry @ index.esm.js:661 LoadableSubscription @ index.esm.js:616 init @ index.esm.js:521 LoadableComponent @ index.esm.js:562 renderWithHooks @ react-dom.development.js:14803 updateForwardRef @ react-dom.development.js:16816 beginWork @ react-dom.development.js:18645 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 discreteUpdates$1 @ react-dom.development.js:21893 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 Show 7 more frames devScripts.js:5836 Unexpected keys "@@dva", "global", "login", "menuTree", "settings", "user", "taskIndex", "demo3", "dashboardAndanalysis", "dashboardAndmonitor", "dashboardAndworkplace", "userAndlogin" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "routing", "userAndregister", "loading". Unexpected keys will be ignored. console. @ devScripts.js:5836 warning @ warning.js:10 combination @ combineReducers.js:110 dispatch @ createStore.js:165 replaceReducer @ createStore.js:195 unmodel @ index.js:135 (anonymous) @ dva.ts:74 componentWillUnmount @ dva.ts:73 callComponentWillUnmountWithTimer @ react-dom.development.js:19580 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 safelyCallComponentWillUnmount @ react-dom.development.js:19587 commitUnmount @ react-dom.development.js:20109 unmountHostComponents @ react-dom.development.js:20464 commitDeletion @ react-dom.development.js:20500 commitMutationEffects @ react-dom.development.js:22782 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 commitRootImpl @ react-dom.development.js:22509 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 commitRoot @ react-dom.development.js:22381 finishSyncRender @ react-dom.development.js:21807 performSyncWorkOnRoot @ react-dom.development.js:21793 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 scheduleUpdateOnFiber @ react-dom.development.js:21199 dispatchAction @ react-dom.development.js:15660 checkForUpdates @ use-subscription.development.js:87 (anonymous) @ index.esm.js:680 _update @ index.esm.js:679 (anonymous) @ index.esm.js:662 Promise.then (async) retry @ index.esm.js:661 LoadableSubscription @ index.esm.js:616 init @ index.esm.js:521 LoadableComponent @ index.esm.js:562 renderWithHooks @ react-dom.development.js:14803 updateForwardRef @ react-dom.development.js:16816 beginWork @ react-dom.development.js:18645 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 discreteUpdates$1 @ react-dom.development.js:21893 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 Show 7 more frames devScripts.js:5836 Unexpected keys "@@dva", "global", "login", "menuTree", "settings", "user", "taskIndex", "demo3", "dashboardAndanalysis", "dashboardAndmonitor", "dashboardAndworkplace", "userAndlogin", "userAndregister" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "routing", "loading". Unexpected keys will be ignored. console. @ devScripts.js:5836 warning @ warning.js:10 combination @ combineReducers.js:110 dispatch @ createStore.js:165 replaceReducer @ createStore.js:195 unmodel @ index.js:135 (anonymous) @ dva.ts:74 componentWillUnmount @ dva.ts:73 callComponentWillUnmountWithTimer @ react-dom.development.js:19580 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 safelyCallComponentWillUnmount @ react-dom.development.js:19587 commitUnmount @ react-dom.development.js:20109 unmountHostComponents @ react-dom.development.js:20464 commitDeletion @ react-dom.development.js:20500 commitMutationEffects @ react-dom.development.js:22782 callCallback @ react-dom.development.js:188 invokeGuardedCallbackDev @ react-dom.development.js:237 invokeGuardedCallback @ react-dom.development.js:292 commitRootImpl @ react-dom.development.js:22509 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 commitRoot @ react-dom.development.js:22381 finishSyncRender @ react-dom.development.js:21807 performSyncWorkOnRoot @ react-dom.development.js:21793 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 scheduleUpdateOnFiber @ react-dom.development.js:21199 dispatchAction @ react-dom.development.js:15660 checkForUpdates @ use-subscription.development.js:87 (anonymous) @ index.esm.js:680 _update @ index.esm.js:679 (anonymous) @ index.esm.js:662 Promise.then (async) retry @ index.esm.js:661 LoadableSubscription @ index.esm.js:616 init @ index.esm.js:521 LoadableComponent @ index.esm.js:562 renderWithHooks @ react-dom.development.js:14803 updateForwardRef @ react-dom.development.js:16816 beginWork @ react-dom.development.js:18645 beginWork$1 @ react-dom.development.js:23179 performUnitOfWork @ react-dom.development.js:22154 workLoopSync @ react-dom.development.js:22130 performSyncWorkOnRoot @ react-dom.development.js:21756 (anonymous) @ react-dom.development.js:11089 unstable_runWithPriority @ scheduler.development.js:653 runWithPriority$1 @ react-dom.development.js:11039 flushSyncCallbackQueueImpl @ react-dom.development.js:11084 flushSyncCallbackQueue @ react-dom.development.js:11072 discreteUpdates$1 @ react-dom.development.js:21893 discreteUpdates @ react-dom.development.js:806 dispatchDiscreteEvent @ react-dom.development.js:4168 Show 7 more frames 2devScripts.js:5836 The above error occurred in the component: in HooksConsumerBridge (created by LazyBridge) in LazyBridge (created by ErrorThrower) in ErrorThrower (created by Acceptor) in Acceptor (created by NodeKey) in NodeKey (created by HookExpand) in HookExpand (at TabPages/index.js:324) in div (at TabPages/index.js:323) in div (created by TabPane) in TabPane (at TabPages/index.js:318) in div (created by TabPanelList) in div (created by TabPanelList) in TabPanelList (created by ForwardRef(Tabs)) in div (created by ForwardRef(Tabs)) in ForwardRef(Tabs) (created by Tabs) in Tabs (at TabPages/index.js:298) in TabPages (at BasicLayout.tsx:291) in main (created by Basic) in Basic (created by Context.Consumer) in Content (created by WrapContent) in ConfigProviderWrap (created by WrapContent) in WrapContent (created by BasicLayout) in section (created by Context.Consumer) in BasicLayout (created by Context.Consumer) in Layout (created by BasicLayout) in section (created by Context.Consumer) in BasicLayout (created by Context.Consumer) in Layout (created by BasicLayout) in div (created by BasicLayout) in Provider (created by BasicLayout) in BasicLayout (at BasicLayout.tsx:190) in BasicLayout (created by LoadableComponent) in LoadableComponent (created by Context.Consumer) in Route (created by Context.Consumer) in Switch (created by Context.Consumer) in Layout (created by LoadableComponent) in LoadableComponent (created by Context.Consumer) in Route (created by AliveRouterComponent) in Switch (created by AliveRouterComponent) in AliveScope (at runtime.tsx:63) in Router (at runtime.tsx:62) in AliveRouterComponent (at runtime.tsx:70) in Provider (created by _DvaContainer) in _DvaContainer in Unknown in FormProvider (created by Context.Consumer) in LocaleProvider (created by Context.Consumer) in SizeContextProvider (created by Context.Consumer) in LocaleReceiver (created by ConfigProvider) in ConfigProvider (at locale.tsx:49) in _LocaleContainer in Unknown

Consider adding an error boundary to your tree to customize error handling behavior. Visit https://fb.me/react-error-boundaries to learn more about error boundaries.

CJY0208 commented 3 years ago

试试 0.0.1-beta.25,感谢关注