秋收起义藏品管理后台

shaogen1995 d25283c2a9 upp 1 yıl önce
public b89bb8802d upp 1 yıl önce
src d25283c2a9 upp 1 yıl önce
.gitignore 53949845a6 init 1 yıl önce
README.md 53949845a6 init 1 yıl önce
config-overrides.js 53949845a6 init 1 yıl önce
package-lock.json b89bb8802d upp 1 yıl önce
package.json b89bb8802d upp 1 yıl önce
path.tsconfig.json 53949845a6 init 1 yıl önce
tsconfig.json 53949845a6 init 1 yıl önce

README.md

1.版本类型问题

找到 import { useDispatch } from "react-redux";

按住 Ctrl 点击 useDispatch 出来 useDispatch.d.ts类型声明文件 (路径node_modules>react-redux>es>hooks>useDispatch.d.ts)

找到最后面的 AnyAction,按住 Ctrl 点击 进入 (路径node_modules>redux>index.d.ts)

找到 export interface Action { type: T }

在type后面加一个 ? 即=>

export interface Action { type?: T }