🎈 perf(ID1000763): 新报小程序报表默认全部销售类型,不要默认货主自营
https://www.tapd.cn/53459131/bugtrace/bugs/view/1153459131001000763
This commit is contained in:
+2
-1
@@ -44,7 +44,8 @@ export const throttle = (fn, delay) => {
|
||||
export const getFilterData = (val = {}, arr: string[] = []) => {
|
||||
let res = {}
|
||||
for (let key in val) {
|
||||
if (val[key] !== undefined && val[key] !== null && val[key] !== '' && !arr.includes(key)) {
|
||||
// undefined == null output: true
|
||||
if (val[key] != null && val[key] !== '' && !arr.includes(key)) {
|
||||
if (typeof val[key] == 'number') {
|
||||
if (!isNaN(val[key])) {
|
||||
res[key] = val[key]
|
||||
|
||||
Reference in New Issue
Block a user