mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修复创建脚本选择目录
This commit is contained in:
@@ -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