mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(config) api_url -> apiURL
This commit is contained in:
parent
4cf38c57b8
commit
34f2ed7338
3 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"api_url": "/api/v1",
|
||||
"apiURL": "/api/v1",
|
||||
"appcache": false,
|
||||
"analytics": true,
|
||||
"localStorage": true,
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
else
|
||||
lData = p.data;
|
||||
|
||||
p.url = pConfig && pConfig.api_url + p.url,
|
||||
p.url = pConfig && pConfig.apiURL + p.url,
|
||||
Loader.ajax({
|
||||
method : p.method,
|
||||
url : p.url,
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
var lRet = main.checkParams(pParams);
|
||||
|
||||
if (lRet) {
|
||||
var lAPIURL = main.config.api_url,
|
||||
var lAPIURL = main.config.apiURL,
|
||||
p = pParams;
|
||||
|
||||
lRet = Util.isContainStr(p.name, lAPIURL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue