feat:webui-test
This commit is contained in:
1 parent
2ab91e363f
commit
5d77f50160
5 files changed
+193
-167
No files matched your search
@@ -49,6 +49,7 @@ export async function WebUIConfig(): Promise<WebUiConfig> {
|
||||
|
||||
// 修正端口占用情况
|
||||
const [err, data] = await tryUsePort(parsedConfig.port).then(data => [null, data as number]).catch(err => [err, null]);
|
||||
config.port = data;
|
||||
if (err) {
|
||||
//一般没那么离谱 如果真有这么离谱 考虑下 向外抛出异常
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user