|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
package cokr.xit.base.menu.web;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
import java.util.stream.Stream;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
@ -40,12 +39,12 @@ public class MenuInjector extends RequestInterceptor {
|
|
|
|
|
private List<String> active;
|
|
|
|
|
|
|
|
|
|
private List<String> getActive() {
|
|
|
|
|
return !isEmpty(active) ? active : (active = Stream.of(HTML_GET).collect(Collectors.toList()));
|
|
|
|
|
return !isEmpty(active) ? active : (active = Stream.of(HTML_GET).toList());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setActive(String... active) {
|
|
|
|
|
this.active = !isEmpty(active) ?
|
|
|
|
|
Stream.of(active).map(String::toLowerCase).collect(Collectors.toList())
|
|
|
|
|
Stream.of(active).map(String::toLowerCase).toList()
|
|
|
|
|
: null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|