mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
修复创建脚本选择目录
This commit is contained in:
1 parent
106b34e33a
commit
05d47be1c8
6 files changed
+52
-36
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user