优化加载脚本逻辑

This commit is contained in:
YHH
2025-10-15 09:19:30 +08:00
parent cbfe09b5e9
commit 285279629e
3 changed files with 21 additions and 9 deletions

View File

@@ -169,7 +169,7 @@ function App() {
if (componentsPath) {
const componentInfos = await discoveryService.scanComponents({
basePath: componentsPath,
pattern: '**/*Component.ts',
pattern: '**/*.ts',
scanFunction: TauriAPI.scanDirectory,
readFunction: TauriAPI.readFileContent
});