url 配置项

This commit is contained in:
Cheney
2024-10-17 15:37:21 +08:00
parent 20782a7c24
commit b3ece1ad61
4 changed files with 20 additions and 9 deletions
+8
View File
@@ -64,11 +64,16 @@ namespace init{
object.merge(configs, appDataConfig, true);
}
checkConfig(configs);
gLog.print("configs", util.table.stringify(configs, true));
return configs;
};
/*
* 默认配置
*/
checkConfig = function (config){
gLog.print("checkConfig");
if( ! config.window ){
config.window = {}
}
@@ -78,6 +83,9 @@ namespace init{
if( ! config.window.height ) {
config.window.height = 500
}
if( (! config.frontend) or config.frontend == "" ){
config.frontend = "web/index.html"
}
return config;
}