url 配置项
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user