feat:修改文件上传,白板关闭不影响其他用户等
This commit is contained in:
@@ -77,8 +77,7 @@ const props = defineProps({
|
||||
});
|
||||
|
||||
emitter.on('fileUploadStatus',async ()=>{
|
||||
if(drawerVisible.value){
|
||||
console.log('更新啦')
|
||||
if(drawerVisible.value){
|
||||
await getFileList()
|
||||
}
|
||||
})
|
||||
@@ -161,7 +160,7 @@ async function getFileList(){
|
||||
}
|
||||
fileList.value = res.data.files || [];
|
||||
} catch (error) {
|
||||
console.error('获取文件列表失败:', error);
|
||||
// console.error('获取文件列表失败:', error);
|
||||
ElMessage.error('获取文件列表失败');
|
||||
} finally {
|
||||
loading.value = false;
|
||||
|
||||
Reference in New Issue
Block a user