shaogen1995 1 年之前
父节点
当前提交
a809f80cde
共有 3 个文件被更改,包括 17 次插入41 次删除
  1. 14 38
      backstage/README.md
  2. 1 1
      scene/js/Hot.js
  3. 2 2
      scene/js/main_2020_show.js

+ 14 - 38
backstage/README.md

@@ -1,46 +1,22 @@
-# Getting Started with Create React App
+1.版本类型问题
 
-This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
+找到 import { useDispatch } from "react-redux";
 
-## Available Scripts
+按住 Ctrl 点击 useDispatch 出来 useDispatch.d.ts类型声明文件
+(路径node_modules>react-redux>es>hooks>useDispatch.d.ts)
 
-In the project directory, you can run:
+找到最后面的 AnyAction,按住 Ctrl 点击 进入
+(路径node_modules>redux>index.d.ts)
 
-### `npm start`
+找到
+export interface Action<T = any> {
+  type: T
+}
 
-Runs the app in the development mode.\
-Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
+在type后面加一个 ?   即=>
 
-The page will reload if you make edits.\
-You will also see any lint errors in the console.
+export interface Action<T = any> {
+  type?: T
+}
 
-### `npm test`
 
-Launches the test runner in the interactive watch mode.\
-See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
-
-### `npm run build`
-
-Builds the app for production to the `build` folder.\
-It correctly bundles React in production mode and optimizes the build for the best performance.
-
-The build is minified and the filenames include the hashes.\
-Your app is ready to be deployed!
-
-See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
-
-### `npm run eject`
-
-**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
-
-If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
-
-Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
-
-You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
-
-## Learn More
-
-You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
-
-To learn React, check out the [React documentation](https://reactjs.org/).

+ 1 - 1
scene/js/Hot.js

@@ -61,7 +61,7 @@ window.initHot = function(model){
           , o = "en" == manage.number("lang") ? "&lang=" + manage.number("lang") : "";
         -1 == r.indexOf("?") ? src = link + "?time=" + randomTime().getTime() + "&id=" + window.number + o : src = link + "&time=" + randomTime().getTime() + "&id=" + window.number + o 
             
-        return src.replace('/edit-backstage','') 
+        return src.replace('https://www.4dmodel.com/SuperTwo','') 
     }
     var removeSrcPostMark = function(url){//去除texture.load时自动加上的'?'
         var index = url.indexOf('?')

+ 2 - 2
scene/js/main_2020_show.js

@@ -6793,9 +6793,9 @@ window.Modernizr = function(n, e, t) {
                        
                     var thumbUrl 
                     if(c.heroLocations){//有子项,选第一张截图
-                        thumbUrl = manage.dealURL(c.heroLocations[0].thumbUrl).replace('https://','').replace('http://','')
+                        thumbUrl = manage.dealURL(c.heroLocations[0].thumbUrl).replace('https://','').replace('http://','').replace('data','/data')
                     }else{
-                        thumbUrl = manage.dealURL(c.thumbUrl).replace('https://','').replace('http://','')
+                        thumbUrl = manage.dealURL(c.thumbUrl).replace('https://','').replace('http://','').replace('data','/data')
                     } 
                     h.attr("data-index", s)