Commit 93aefe04 authored by malin's avatar malin

test

parent d16baaf5
...@@ -172,13 +172,21 @@ export default { ...@@ -172,13 +172,21 @@ export default {
}; };
API.API_fetchName(params).then((res) => { API.API_fetchName(params).then((res) => {
if (res.result.data == null) { if (res.result.data == null) {
setTimeout(() => {
this.counter += 1;
if (this.counter >= 80) {
return;
} else {
return this._fetchName();
}
}, 2000);
return; return;
} }
this.nameList = res.result.data; this.nameList = res.result.data;
if (this.nameList.length == 0) { if (this.nameList.length == 0) {
setTimeout(() => { setTimeout(() => {
this.counter += 1; this.counter += 1;
if (this.counter >= 30) { if (this.counter >= 80) {
return; return;
} else { } else {
return this._fetchName(); return this._fetchName();
...@@ -190,7 +198,6 @@ export default { ...@@ -190,7 +198,6 @@ export default {
// 但双字切换 // 但双字切换
convertImg(item) { convertImg(item) {
console.log(item);
this.page = 1; this.page = 1;
this.words = item.words; this.words = item.words;
this.imgInfo.map((option) => { this.imgInfo.map((option) => {
......
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