refactor(UserEdit): 优化文件选择逻辑,为空不显示选择成功
This commit is contained in:
@@ -1403,7 +1403,7 @@ const selectInfrastructureConfig = async () => {
|
|||||||
{ name: '所有文件', extensions: ['*'] }
|
{ name: '所有文件', extensions: ['*'] }
|
||||||
])
|
])
|
||||||
|
|
||||||
if (path) {
|
if (path && path.length > 0) {
|
||||||
infrastructureConfigPath.value = path
|
infrastructureConfigPath.value = path
|
||||||
message.success('文件选择成功')
|
message.success('文件选择成功')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user