更新任务9
This commit is contained in:
1 parent
8ced949442
commit
6605a34b36
2 files changed
+2
-1
No files matched your search
@@ -103,7 +103,6 @@ function divideSidebar (
|
||||
|
||||
let lastFolderName = FileUtils.getLastFolderName(file.parentFolder)
|
||||
let relativePath = FileUtils.getRelativePath(file.path, rootDir)
|
||||
console.log(relativePath, '=============')
|
||||
let obj: SidebarItem = {
|
||||
text: fileName,
|
||||
link: relativePath,
|
||||
|
||||
@@ -26,7 +26,9 @@ export default function autoGenerateSidebar (
|
||||
|
||||
// 完整路径
|
||||
const docP = path.join(roleFolderName, docPath)
|
||||
console.log(docP);
|
||||
let sidebarP = path.join(roleFolderName, genPath)
|
||||
console.log(sidebarP);
|
||||
|
||||
return {
|
||||
name: 'autoSidebar',
|
||||
|
||||
Reference in new issue
Block a user