feature: 调整自动化代码web模板

This commit is contained in:
pixelmaxQM
2024-07-21 21:58:23 +08:00
parent 01f6814a25
commit ac374bab22
3 changed files with 4 additions and 4 deletions

View File

@@ -88,9 +88,9 @@ func (r *AutoCode) Apis() []model.SysApi {
}
func (r *AutoCode) Menu(template string) model.SysBaseMenu {
component := fmt.Sprintf("view/%s/%s/%s.vue", r.Package, r.PackageName)
component := fmt.Sprintf("view/%s/%s/%s.vue", r.Package, r.PackageName, r.PackageName)
if template != "package" {
component = fmt.Sprintf("plugin/%s/view/%s.vue", r.Package, r.Abbreviation)
component = fmt.Sprintf("plugin/%s/view/%s.vue", r.Package, r.PackageName)
}
return model.SysBaseMenu{
ParentId: 0,