无锡慈善博物馆-后台管理

shaogen1995 08ea5f26d8 up пре 1 година
.vscode 37f7d412e0 数据看板 пре 1 година
public 74226fa835 up пре 1 година
src 08ea5f26d8 up пре 1 година
.gitignore 2627a48f76 'init' пре 1 година
README.md 2627a48f76 'init' пре 1 година
config-overrides.js 2627a48f76 'init' пре 1 година
package-lock.json 7eb45cc570 upp пре 1 година
package.json 37f7d412e0 数据看板 пре 1 година
path.tsconfig.json 2627a48f76 'init' пре 1 година
tsconfig.json 2627a48f76 'init' пре 1 година
yarn.lock 73a3ab1bf3 home-up пре 1 година

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 }

2.使用 yarn。 npm有问题