Commit eee97f14 authored by 姜登's avatar 姜登

gjj

parent a6565a18
Pipeline #13555 passed with stage
in 4 seconds
......@@ -26,6 +26,9 @@ class ScriptController extends Controller {
return !(limitScriptsList.includes(item.id));
});
}
data = data.filter(item => {
return !(item.state === 'none');
});
ctx.success(data);
}
......@@ -109,7 +112,7 @@ class ScriptController extends Controller {
data.forEach(element => {
if (element.state === 'online') {
array.unshift(element);
} else {
} else if (element.state !== 'none') {
array.push(element);
}
});
......
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