This commit is contained in:
2026-02-09 23:27:16 +08:00
parent adf7457502
commit af366d76b2
8 changed files with 3282 additions and 1 deletions

View File

@@ -49,7 +49,11 @@ function loadComponent(componentPath) {
}
// 如果是简单的组件名称,从 pages 目录加载
return modules[`../pages/${componentPath}/index.vue`]
if (componentPath.endsWith('index')){
return modules[`../pages/${componentPath}.vue`]
} else {
return modules[`../pages/${componentPath}/index.vue`]
}
}
/**