修复创建脚本选择目录

This commit is contained in:
whyour committed 2022-06-04 01:26:01 +08:00
1 parent 106b34e33a
commit 05d47be1c8
6 files changed
+52 -36

No files matched your search

-3
View File
@@ -293,7 +293,6 @@ export function readDirs(
if (stats.isDirectory()) {
return {
title: file,
value: file,
key,
type: 'directory',
disabled: true,
@@ -303,7 +302,6 @@ export function readDirs(
}
return {
title: file,
value: file,
type: 'file',
key,
parent: relativePath,
@@ -327,7 +325,6 @@ export function readDir(
const key = path.join(relativePath, file);
return {
title: file,
value: file,
type: stats.isDirectory() ? 'directory' : 'file',
key,
parent: relativePath,