ui: support @[user]()

This commit is contained in:
undefined committed 2021-05-19 23:12:07 +08:00
1 parent b272598685
commit c5b2552f59
8 files changed
+48 -13

No files matched your search

+2 -4
View File
@@ -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,