|
@@ -6,6 +6,11 @@
|
|
|
import {CLEAR_LIST_STATE, LIST_STATE} from "../constants/actionTypes";
|
|
import {CLEAR_LIST_STATE, LIST_STATE} from "../constants/actionTypes";
|
|
|
import store from '../store/store'
|
|
import store from '../store/store'
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * 保存列表状态
|
|
|
|
|
+ * @param data
|
|
|
|
|
+ * @returns {Function}
|
|
|
|
|
+ */
|
|
|
export const saveListState = (data) => {
|
|
export const saveListState = (data) => {
|
|
|
return () => {
|
|
return () => {
|
|
|
store.dispatch({
|
|
store.dispatch({
|
|
@@ -15,6 +20,10 @@ export const saveListState = (data) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * 清除列表状态
|
|
|
|
|
+ * @returns {Function}
|
|
|
|
|
+ */
|
|
|
export const clearListState = () => {
|
|
export const clearListState = () => {
|
|
|
return () => {
|
|
return () => {
|
|
|
store.dispatch({
|
|
store.dispatch({
|