adminでもパス生成できるように

This commit is contained in:
tai-cha 2025-03-03 01:19:18 +09:00
parent e72f4fd61d
commit 608cd773be
No known key found for this signature in database
GPG Key ID: 1D5EE39F870DC283
1 changed files with 1 additions and 1 deletions

View File

@ -790,7 +790,7 @@ function extractUsageInfoFromTemplateAst(
} }
//pathがない場合はファイルパスを設定 //pathがない場合はファイルパスを設定
if (markerInfo.path == null && parentId == null) markerInfo.path = id.match(/.*(\/settings\/[^\/]+)\.vue$/)?.[1]; if (markerInfo.path == null && parentId == null) markerInfo.path = id.match(/.*(\/(admin|settings)\/[^\/]+)\.vue$/)?.[1];
// SearchLabelとSearchKeywordを抽出 (AST全体を探索) // SearchLabelとSearchKeywordを抽出 (AST全体を探索)
if (node.children && Array.isArray(node.children)) { if (node.children && Array.isArray(node.children)) {