|
|
@@ -15,10 +15,19 @@ type Props = {
|
|
|
|
|
|
function A2add({ info, addTableFu, closeFu }: Props) {
|
|
|
useEffect(() => {
|
|
|
+ const txt = info.filePath || ''
|
|
|
+
|
|
|
+ let fileName = ''
|
|
|
+
|
|
|
+ if (txt) {
|
|
|
+ const resArr = txt.split('/')
|
|
|
+ fileName = resArr[resArr.length - 1]
|
|
|
+ }
|
|
|
+
|
|
|
ZupThumbRef.current?.setFileComFileFu({
|
|
|
- fileName: '',
|
|
|
- filePath: info.filePath || '',
|
|
|
- thumb: info.filePath || ''
|
|
|
+ fileName,
|
|
|
+ filePath: txt,
|
|
|
+ thumb: txt
|
|
|
})
|
|
|
}, [info.filePath])
|
|
|
|