目前官方确实没有提供最大化的api,我是获取屏幕尺寸给定宽高处理的。
utools.hideMainWindow();
const display = utools.getDisplayNearestPoint(utools.getCursorScreenPoint());
const area = display.workArea;
utools.ubrowser
.goto('https://yuanliao.info')
.run({
show: true,
width: area.width,
height: area.height,
x: area.x,
y: area.y,
center: true
});