mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
feature(client) add setConfig
This commit is contained in:
parent
30be394ace
commit
8ad5d09e01
2 changed files with 3 additions and 2 deletions
|
|
@ -298,8 +298,8 @@ var Util, DOM, CloudFunc, CloudCmd;
|
|||
return lGetSysFile;
|
||||
}
|
||||
|
||||
|
||||
|
||||
CloudCmd.setConfig = function(config) { Config = config };
|
||||
CloudCmd.setConfig = function(config) {Config = config};
|
||||
CloudCmd.getConfig = getSystemFile(Config, CloudCmd.JSONDIR + 'config.json');
|
||||
CloudCmd.getModules = getSystemFile(Modules, CloudCmd.JSONDIR + 'modules.json');
|
||||
CloudCmd.getFileTemplate = getSystemFile(FileTemplate, CloudCmd.HTMLDIR + 'file.html');
|
||||
|
|
|
|||
|
|
@ -137,6 +137,7 @@ var CloudCmd, Util, DOM;
|
|||
|
||||
obj[name] = data;
|
||||
CONFIG[name] = data;
|
||||
CloudCmd.setConfig(CONFIG);
|
||||
|
||||
DOM.RESTful.config(obj);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue