@netang/quasar 0.1.99 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/utils/uploader.js +2 -1
package/package.json
CHANGED
package/utils/uploader.js
CHANGED
|
@@ -33,6 +33,7 @@ import $n_previewImage from './previewImage'
|
|
|
33
33
|
import $n_getImage from './getImage'
|
|
34
34
|
import $n_getFile from './getFile'
|
|
35
35
|
import $n_config from './config'
|
|
36
|
+
import $n_timestamp from './timestamp'
|
|
36
37
|
|
|
37
38
|
import { configs } from './config'
|
|
38
39
|
|
|
@@ -538,7 +539,7 @@ function create(options) {
|
|
|
538
539
|
// 如果有后缀名
|
|
539
540
|
if (ext) {
|
|
540
541
|
// 设置文件
|
|
541
|
-
fileItem.file = new File([blob],
|
|
542
|
+
fileItem.file = new File([blob], String($n_timestamp()), { type: blob.type })
|
|
542
543
|
// 设置后缀名
|
|
543
544
|
fileItem.ext = ext
|
|
544
545
|
|