File tree 3 files changed +15
-5
lines changed
3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ module.exports = {
315
315
path : 'src/packages/media/video/src/index.ts' ,
316
316
pkgInfo : [
317
317
{
318
- version : '1.0.7 ' ,
318
+ version : '1.0.8 ' ,
319
319
name : '@uni/video' ,
320
320
dependencies : {
321
321
'@uni/action-sheet' : '^1.0.7' ,
Original file line number Diff line number Diff line change
1
+ ## 1.0.8 (2023-05-17)
2
+
3
+ ### Bug Fixes
4
+
5
+ * 解决 my.chooseMedia 在钉钉环境缺失 tempFiles 字段导致 map 报错问题
6
+
1
7
## 1.0.6 (2021-08-20)
2
8
3
9
### Bug Fixes
Original file line number Diff line number Diff line change @@ -10,10 +10,14 @@ const chooseMedia = normalize.chooseMedia((args) => {
10
10
success : ( res ) => {
11
11
const result = {
12
12
type : 'image' ,
13
- tempFiles : res . tempFiles . map ( ( i ) => ( {
14
- ...i ,
15
- tempFilePath : i . path ,
16
- } ) ) ,
13
+ tempFiles : res . tempFiles
14
+ ? res . tempFiles . map ( ( i ) => ( {
15
+ ...i ,
16
+ tempFilePath : i . path ,
17
+ } ) )
18
+ : res . tempFilePaths . map ( ( i ) => ( {
19
+ tempFilePath : i ,
20
+ } ) ) ,
17
21
} ;
18
22
args . success ( result ) ;
19
23
} ,
You can’t perform that action at this time.
0 commit comments