fix(list):更改Windows环境下的盘符获取。
This commit is contained in:
parent
02f8e70a71
commit
a6ac162bfd
|
@ -106,7 +106,7 @@ pub async fn show_drives<R: Runtime>(
|
||||||
.into_string()
|
.into_string()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
let dirname = mount.name.clone().unwrap_or_default();
|
let dirname = mount.path.clone().display();
|
||||||
let dirname = if dirname.len() == 0 {
|
let dirname = if dirname.len() == 0 {
|
||||||
String::from("/")
|
String::from("/")
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user