We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 534d721 commit 8b20f51Copy full SHA for 8b20f51
frontend/src/layout/ViewLeft/ViewFolder.vue
@@ -149,8 +149,7 @@ const uploadFileChange = async (e: any) => {
149
return
150
}
151
152
- const children = uploadInfo.value.childNodes.map((i) => i.data.label)
153
- if (children.includes(file.name)) {
+ if (uploadInfo.value.childNodes.some((i) => i.data.label === file.name)) {
154
try {
155
await ElMessageBox.confirm(`当前目录存在同名文件:【${file.name}】,继续上传将覆盖该文件,是否继续?`, '提示', {
156
confirmButtonText: '继续',
0 commit comments