Commit 47e61b1e by Joey

fix(@rbc/workflow-job-view): 低版本浏览器查询条件不显示

parent da3f7493
......@@ -103,7 +103,17 @@ let seniorQueryMixins = {
},
computed: {
flatSeniorQueryData() {
return this.copySeniorQueryData.flat()
const flatten = (array) => {
var flattend = [];
(function flat(array) {
array.forEach(function(el) {
if (Array.isArray(el)) flat(el);
else flattend.push(el);
});
})(array);
return flattend;
}
return flatten(this.copySeniorQueryData)
}
},
methods: {
......
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