shaogen1995 0e427ff0e6 up-修复模型没有限制转动位置问题 1 year ago
..
public 0e427ff0e6 up-修复模型没有限制转动位置问题 1 year ago
src 20c2046e46 style-up-全景 1 year ago
.gitignore 11ff52094c 'init' 1 year ago
README.md afeb4b49a8 upp 1 year ago
config-overrides.js 11ff52094c 'init' 1 year ago
package-lock.json 11ff52094c 'init' 1 year ago
package.json 280516a162 feat: -- 1 year ago
path.tsconfig.json 11ff52094c 'init' 1 year ago
tsconfig.json 11ff52094c 'init' 1 year ago
yarn.lock 280516a162 feat: -- 1 year ago

README.md

本地运行:静态资源里面先运行一个服务 使用 http-server 确保服务地址是:http://127.0.0.1:8080


------ts版本类型问题-------

找到 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 }