This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +26
-20
lines changed Expand file tree Collapse file tree 2 files changed +26
-20
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,10 @@ export const getOSSFileName = filename => {
44
44
const userName = store . accountInfo . nickname
45
45
const userId = store . accountInfo . id
46
46
const id = store . viewingData . id || 'new'
47
+ const curDate = new Date ( )
48
+ const curTime = curDate . getTime ( )
47
49
48
- return `${ community } -${ thread } -${ id } -${ userName } -${ userId } -${ filename } `
50
+ return `${ community } -${ thread } -${ id } -${ userName } -${ userId } -${ curTime } - ${ filename } `
49
51
}
50
52
51
53
export const sendEvent = ( state = 'start' ) => {
Original file line number Diff line number Diff line change @@ -43,27 +43,31 @@ class PreviewContainer extends React.Component {
43
43
44
44
return (
45
45
< React . Fragment >
46
- < ModalPreview visible = { modalVisible } >
47
- < Viewer
48
- type = { type }
49
- root = { root }
50
- attachment = { attachmentData }
51
- attUser = { attUserData }
52
- />
53
- </ ModalPreview >
46
+ { modalVisible && (
47
+ < ModalPreview visible = { modalVisible } >
48
+ < Viewer
49
+ type = { type }
50
+ root = { root }
51
+ attachment = { attachmentData }
52
+ attUser = { attUserData }
53
+ />
54
+ </ ModalPreview >
55
+ ) }
54
56
55
- < SliderPreview
56
- visible = { slideVisible }
57
- type = { type }
58
- imageUploading = { imageUploading }
59
- >
60
- < Viewer
57
+ { slideVisible && (
58
+ < SliderPreview
59
+ visible = { slideVisible }
61
60
type = { type }
62
- root = { root }
63
- attachment = { attachmentData }
64
- attUser = { attUserData }
65
- />
66
- </ SliderPreview >
61
+ imageUploading = { imageUploading }
62
+ >
63
+ < Viewer
64
+ type = { type }
65
+ root = { root }
66
+ attachment = { attachmentData }
67
+ attUser = { attUserData }
68
+ />
69
+ </ SliderPreview >
70
+ ) }
67
71
</ React . Fragment >
68
72
)
69
73
}
You can’t perform that action at this time.
0 commit comments