Commit 0fac184a authored by ibuler's avatar ibuler

[Update] 修改搜索trim

parent f901fce2
...@@ -608,8 +608,9 @@ jumpserver.initServerSideDataTable = function (options) { ...@@ -608,8 +608,9 @@ jumpserver.initServerSideDataTable = function (options) {
var kv = val.split(":"); var kv = val.split(":");
if (kv.length === 2) { if (kv.length === 2) {
var value = kv[1]; var value = kv[1];
value = value.replace("+", " "); var key = kv[0].trim();
search_attr[kv[0]] = value.trim() value = value.replace("+", " ").trim();
search_attr[key] = value
} else { } else {
search_raw.push(kv) search_raw.push(kv)
} }
......
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