🎈 perf(ID1000763): 新报小程序报表默认全部销售类型,不要默认货主自营

https://www.tapd.cn/53459131/bugtrace/bugs/view/1153459131001000763
This commit is contained in:
xuan
2022-11-18 17:43:21 +08:00
parent 949bb9149b
commit c6f3173e5e
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -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]