Update: 调整页面

This commit is contained in:
王立帮
2024-08-03 14:44:34 +08:00
parent de48b3c65a
commit dd179a9f1d
4 changed files with 19 additions and 10 deletions

View File

@@ -219,7 +219,7 @@ class App extends Component {
},
callback: () => BU.initBurn(),
scopeType: Nav.Scope.LEFT,
weight: 4
weight: 3
});
this.#nav_.register({

View File

@@ -329,10 +329,12 @@ ArduShell.upload = (boardType, port) => {
}
ArduShell.runCmd(layerNum, 'upload', cmdStr,
function () {
mainStatusBarTabs.add('serial', port);
mainStatusBarTabs.changeTo(port);
const statusBarSerial = mainStatusBarTabs.getStatusBarById(port);
statusBarSerial.open();
setTimeout(() => {
mainStatusBarTabs.add('serial', port);
mainStatusBarTabs.changeTo(port);
const statusBarSerial = mainStatusBarTabs.getStatusBarById(port);
statusBarSerial.open();
}, 1000);
}
);
}
@@ -492,7 +494,6 @@ ArduShell.runCmd = (layerNum, type, cmd, sucFunc) => {
layer.close(layerNum);
let message = '';
if (info.code) {
message = (type === 'compile' ? Msg.Lang['shell.compileFailed'] : Msg.Lang['shell.uploadFailed']);
statusBarTerminal.addValue("==" + message + "==\n");
} else {