Commit c96bcdb5 authored by tianhongyang's avatar tianhongyang

过滤工具函数 处理值更正

parent 7b061bb5
......@@ -38,6 +38,6 @@ export function dskAccessToken() {
* @returns {Array<object>}
*/
export const getAreaListApi = () => request({
url: "/area/all",
url: "/area/all/withoutRegion",
method: "get"
});
......@@ -601,7 +601,7 @@ export function queryConditionFiltering(params) {
for (let index = 0; index < len; index++) {
const key = keys[index];
if (_temp.hasOwnProperty(key)) {
// 数组内部不处理 外部处理
// 数组内部不处理
if (_temp[key] instanceof Array && _temp[key]?.length) {
result[key] = _temp[key];
continue;
......@@ -612,7 +612,7 @@ export function queryConditionFiltering(params) {
continue;
}
// 过滤无效值 0为有效数据
if (_temp[key] || _temp[key] == "0") {
if (typeof _temp[key] != "object" && (_temp[key] || _temp[key] == "0")) {
result[key] = _temp[key];
continue;
}
......
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