中国铁塔集团-3D数据-管理后台

shaogen1995 f258c0f96f up 1 ano atrás
public 5fe972ac89 upp 1 ano atrás
src f258c0f96f up 1 ano atrás
.gitignore be1ba892dd first commit 2 anos atrás
README.md be1ba892dd first commit 2 anos atrás
config-overrides.js be1ba892dd first commit 2 anos atrás
package-lock.json 51a6938fe8 up-相机管理 2 anos atrás
package.json 51a6938fe8 up-相机管理 2 anos atrás
path.tsconfig.json be1ba892dd first commit 2 anos atrás
tsconfig.json be1ba892dd first commit 2 anos atrás

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 }