mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(rest) read: add dataType
This commit is contained in:
parent
4902adbe8f
commit
0af0190688
1 changed files with 8 additions and 6 deletions
|
|
@ -43,7 +43,8 @@ var Util, DOM, CloudFunc;
|
|||
method : 'GET',
|
||||
url : CloudFunc.FS + url,
|
||||
callback : callback,
|
||||
notLog : !isQuery
|
||||
notLog : !isQuery,
|
||||
dataType : 'text'
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -149,11 +150,12 @@ var Util, DOM, CloudFunc;
|
|||
p.url = apiURL + p.url;
|
||||
|
||||
DOM.ajax({
|
||||
method : p.method,
|
||||
url : p.url,
|
||||
data : data,
|
||||
error : Images.showError,
|
||||
success : function(data) {
|
||||
method : p.method,
|
||||
url : p.url,
|
||||
data : data,
|
||||
dataType : p.dataType,
|
||||
error : Images.showError,
|
||||
success : function(data) {
|
||||
Images.hide();
|
||||
|
||||
if (!p.notLog)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue