Skip to content

Commit

Permalink
fix: config解析
Browse files Browse the repository at this point in the history
  • Loading branch information
Ackites committed Aug 15, 2024
1 parent 52c28e8 commit 456e847
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/unpack/uconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ func (p *ConfigParser) Parse(option config.WxapkgInfo) error {
}
}
subPackage.Root = root
subPackage.Pages = newPages
if len(newPages) == 0 {
subPackage.Pages = []string{}
} else {
subPackage.Pages = newPages
}
subPackages = append(subPackages, subPackage)
}
app.SubPackages = subPackages
Expand Down

0 comments on commit 456e847

Please sign in to comment.