Commit 7288897f authored by 任建锋's avatar 任建锋

修改editScrollView重置

parent 6bf68338
...@@ -6,7 +6,7 @@ export let API_HOST; ...@@ -6,7 +6,7 @@ export let API_HOST;
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
//API_HOST = '//10.10.95.74:7777'; //API_HOST = '//10.10.95.74:7777';
//API_HOST = '//192.168.1.16:7777'; //API_HOST = '//192.168.1.16:7777';
API_HOST = '//0.0.0.0:3000'; API_HOST = '//10.10.30.100:3000';
//API_HOST = '//192.168.0.105:7777'; //API_HOST = '//192.168.0.105:7777';
//API_HOST = '//localhost:8080'; //API_HOST = '//localhost:8080';
//API_HOST = window.__data.apiHost; //API_HOST = window.__data.apiHost;
......
...@@ -1064,8 +1064,8 @@ function resetScrollType(data) { ...@@ -1064,8 +1064,8 @@ function resetScrollType(data) {
data.type = "scrollView" data.type = "scrollView"
} }
if (data.children) { if (data.children) {
for (let itme of data.children) { for(let i=0;i<data.children.length;i++){
resetScrollType(itme) this.resetScrollType(data.children[i])
} }
} }
} }
......
...@@ -122,8 +122,8 @@ ...@@ -122,8 +122,8 @@
data.type="scrollView" data.type="scrollView"
} }
if(data.children){ if(data.children){
for(let itme of data.children){ for(let i=0;i<data.children.length;i++){
this.resetScrollType(itme) this.resetScrollType(data.children[i])
} }
} }
}, },
......
...@@ -136,8 +136,8 @@ ...@@ -136,8 +136,8 @@
data.type = "scrollView" data.type = "scrollView"
} }
if (data.children) { if (data.children) {
for (let itme of data.children) { for(let i=0;i<data.children.length;i++){
this.resetScrollType(itme) this.resetScrollType(data.children[i])
} }
} }
//console.log("1122334") //console.log("1122334")
......
...@@ -73,8 +73,8 @@ ...@@ -73,8 +73,8 @@
data.type="scrollView" data.type="scrollView"
} }
if(data.children){ if(data.children){
for(let itme of data.children){ for(let i=0;i<data.children.length;i++){
this.resetScrollType(itme) this.resetScrollType(data.children[i])
} }
} }
}, },
......
...@@ -81,8 +81,8 @@ export async function preprocess(project, packages) { ...@@ -81,8 +81,8 @@ export async function preprocess(project, packages) {
data.type="scrollView" data.type="scrollView"
} }
if(data.children){ if(data.children){
for(let itme of data.children){ for(let i=0;i<data.children.length;i++){
resetScrollType(itme) this.resetScrollType(data.children[i])
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment