This commit is contained in:
yj 2024-08-08 14:22:54 +08:00
parent 4e322cc417
commit 891a435ff0
1 changed files with 1 additions and 1 deletions

View File

@ -291,6 +291,7 @@ const SharedFilesModel = forwardRef((props: any, ref: any) => {
} else if (process.platform === 'darwin') { } else if (process.platform === 'darwin') {
exec(`open "${setting.shareFilesPath}"`); exec(`open "${setting.shareFilesPath}"`);
} }
getRoomFile()
} catch (error: any) { } catch (error: any) {
if (error.code === 'ENOENT') { if (error.code === 'ENOENT') {
message.error('文件夹不存在!') message.error('文件夹不存在!')
@ -298,7 +299,6 @@ const SharedFilesModel = forwardRef((props: any, ref: any) => {
message.error(error) message.error(error)
} }
} }
getRoomFile()
} catch (error: any) { } catch (error: any) {
if (error.code === 'ENOENT') { if (error.code === 'ENOENT') {
message.error('文件夹不存在!') message.error('文件夹不存在!')