redux持久化(<PersistGate loading={null} persistor={persistStore(store)}></PersistGate>)
//引入标题括号中的 PersistGate 这一句在Provider标签里面
//import { PersistGate } from ‘redux-persist/lib/integration/react’
import { createStore, compose, combineReducers, applyMiddleware } from ‘redux’
import promise from ‘redux-promise’ // 中间件
import thunk from ‘redux-t
原创
2020-11-13 19:05:32 ·
801 阅读 ·
0 评论