mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: add upload progress bar (#141)
This commit is contained in:
1 parent
859f27fed1
commit
0d1809c08e
5 files changed
+62
-9
No files matched your search
@@ -41,8 +41,9 @@ const request = {
|
||||
/**
|
||||
* @param {string} url
|
||||
* @param {FormData} FormData
|
||||
* @param {object} options
|
||||
*/
|
||||
postFile(url, form) {
|
||||
postFile(url, form, options = {}) {
|
||||
return this.ajax({
|
||||
url,
|
||||
data: form,
|
||||
@@ -50,6 +51,7 @@ const request = {
|
||||
contentType: false,
|
||||
type: 'POST',
|
||||
dataType: undefined,
|
||||
...options,
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user