Commit e5fa4acf authored by 吴亮's avatar 吴亮 Committed by 杨奕

revert 93c9c206e6121711798f1f3740ba45ed7a1a4793, and fix the bug by

typeof
parent 6362cbce
......@@ -93,7 +93,7 @@
handleSelect(filterValue) {
this.filterValue = filterValue;
if (filterValue || filterValue === 0) {
if (typeof(filterValue) === "number" && filterValue >= 0) {
this.confirmFilter(this.filteredValue);
} else {
this.confirmFilter([]);
......@@ -129,7 +129,7 @@
},
set(value) {
if (this.filteredValue) {
if (value || value === 0) {
if (typeof(value) === "number" && value >= 0) {
this.filteredValue.splice(0, 1, value);
} else {
this.filteredValue.splice(0, 1);
......
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