Мелкие поправки
This commit is contained in:
@@ -66,8 +66,9 @@ class SearchPage extends Vue {
|
|||||||
this.stopInit = false;
|
this.stopInit = false;
|
||||||
this.header = 'Подготовка';
|
this.header = 'Подготовка';
|
||||||
await this.$nextTick();
|
await this.$nextTick();
|
||||||
|
await sleep(10);
|
||||||
|
|
||||||
let prevPerc = 0;
|
let nextPerc = 0;
|
||||||
let text = '';
|
let text = '';
|
||||||
for (let i = 0; i < parsed.para.length; i++) {
|
for (let i = 0; i < parsed.para.length; i++) {
|
||||||
const p = parsed.para[i];
|
const p = parsed.para[i];
|
||||||
@@ -80,10 +81,10 @@ class SearchPage extends Vue {
|
|||||||
|
|
||||||
const perc = Math.round(i/parsed.para.length*100);
|
const perc = Math.round(i/parsed.para.length*100);
|
||||||
|
|
||||||
if (perc != prevPerc) {
|
if (perc > nextPerc) {
|
||||||
this.initPercentage = perc;
|
this.initPercentage = perc;
|
||||||
await sleep(1);
|
await sleep(1);
|
||||||
prevPerc = perc;
|
nextPerc = perc + 10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.text = text.toLowerCase();
|
this.text = text.toLowerCase();
|
||||||
|
|||||||
Reference in New Issue
Block a user