使用umi-plugin-keep-alive实现KeepAlive状态存储
二者选一 $ npm install umi-plugin-keep-alive --save $ yarn add umi-plugin-keep-alive
使用
import { KeepAlive, history } from 'umi'; <KeepAlive> <Page /> </KeepAlive> };
使用介绍:https://www.npmjs.com/package/umi-plugin-keep-alive
京公网安备 11010502049817号