ui: domain.lang

This commit is contained in:
undefined committed 2021-06-21 13:40:13 +08:00
1 parent 680e3ccd32
commit 387bd5eb38
6 files changed
+12 -11

No files matched your search

+2 -6
View File
@@ -21,12 +21,8 @@ export class Page {
}
isNameMatch(name) {
if (typeof this.name === 'string') {
return this.name === name;
}
if (this.name instanceof Array) {
return this.name.indexOf(name) !== -1;
}
if (typeof this.name === 'string') return this.name === name;
if (this.name instanceof Array) return this.name.includes(name);
return false;
}
}