minor chages;

This commit is contained in:
huangjx
2022-04-29 22:49:59 +08:00
parent 3a13bfa244
commit 6195928b74
8 changed files with 19 additions and 18 deletions

View File

@@ -91,7 +91,7 @@ export default {
let formWrapper = element.closest("form");
let formData = helper.getData(formWrapper);
let inputValue = formData["text-input-value"];
if (inputValue && inputValue.length < 2) {
if (!inputValue || (inputValue && inputValue.length < 2)) {
helper.error(t("ncdownloader", "Please enter valid keyword!"));
vm.$data.loading = 0;
return;