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

This commit is contained in:
tai-cha
2025-03-03 01:19:18 +09:00
parent e72f4fd61d
commit 608cd773be

View File

@@ -790,7 +790,7 @@ function extractUsageInfoFromTemplateAst(
}
//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全体を探索)
if (node.children && Array.isArray(node.children)) {