Skip to content

Commit

Permalink
fixed: 修复addFunction下前端api.js无法创建的bug。
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelmaxQm committed Aug 15, 2024
1 parent 85d7b5f commit c70fedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/service/system/auto_code_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func (s *autoCodeTemplate) addTemplateToFile(t string, info request.AutoFunc) er
case "server.go":
target = filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", info.Package, "service", info.HumpPackageName+".go")
case "api.js":
target = filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Web, "plugin", info.Package, "api", info.HumpPackageName+".js")
target = filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Web, "plugin", info.Package, "api", info.PackageName+".js")
}
}

Expand Down

0 comments on commit c70fedf

Please sign in to comment.