mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: support @[user]()
This commit is contained in:
1 parent
b272598685
commit
c5b2552f59
8 files changed
+48
-13
No files matched your search
@@ -73,10 +73,8 @@ const request = {
|
||||
postData = dataOrForm;
|
||||
} else {
|
||||
// {foo: 'bar'}
|
||||
postData = $.param({
|
||||
csrfToken: UiContext.csrfToken,
|
||||
...dataOrForm,
|
||||
}, true);
|
||||
postData = JSON.stringify(dataOrForm);
|
||||
options.contentType = 'application/json';
|
||||
}
|
||||
return request.ajax({
|
||||
url,
|
||||
|
||||
Reference in new issue
Block a user