Commit a42f5179 authored by 仇晓婷's avatar 仇晓婷

数据字典

parent 49f9df26
......@@ -210,12 +210,14 @@ export default {
search(this.keys, items);
function search(keys, data) {
data.map(u => {
if (u.title) {
if (keys.length < 3) {
result.push(u);
} else {
if (u.title.indexOf(keys) > -1) {
result.push(u);
} else if (u.children) {
search(keys, u.children);
}
} else if (u.children) {
search(this.keys, u.children);
}
});
}
......
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