refactor(UserEdit): 优化文件选择逻辑,为空不显示选择成功

This commit is contained in:
2025-08-31 23:55:52 +08:00
parent 88374e5da4
commit 8d044e684a

View File

@@ -1403,7 +1403,7 @@ const selectInfrastructureConfig = async () => {
{ name: '所有文件', extensions: ['*'] }
])
if (path) {
if (path && path.length > 0) {
infrastructureConfigPath.value = path
message.success('文件选择成功')
}