Переделки отображения needle при поиске

This commit is contained in:
Book Pauk
2019-02-17 20:02:18 +07:00
parent e2c51f44bf
commit 0e62f25557
2 changed files with 32 additions and 10 deletions

View File

@@ -436,15 +436,7 @@ class TextPage extends Vue {
}
startSearch(needle) {
this.drawHelper.needle = '';
const words = needle.split(' ');
for (const word of words) {
if (word != '') {
this.drawHelper.needle = word;
break;
}
}
this.drawHelper.needle = needle;
this.drawHelper.searching = true;
this.draw();
}