Skip to content

Commit ce5c196

Browse files
authored
fix: update menu path for department and adjust post sort order (#246)
1 parent f9989a7 commit ce5c196

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/tenant_migrate.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ func (t *Tenant) Migrate(tenantImp center.TenantImp, tx *gorm.DB) error {
744744
Children: []*Menu{
745745
{
746746
Name: "department",
747-
Path: "/department",
747+
Path: "/departments",
748748
Sort: 20,
749749
Type: pkg.MenuAccessType,
750750
Children: []*Menu{
@@ -813,7 +813,7 @@ func (t *Tenant) Migrate(tenantImp center.TenantImp, tx *gorm.DB) error {
813813
{
814814
Name: "post",
815815
Path: "/post",
816-
Sort: 17,
816+
Sort: 19,
817817
Type: pkg.MenuAccessType,
818818
Children: []*Menu{
819819
{
@@ -882,7 +882,7 @@ func (t *Tenant) Migrate(tenantImp center.TenantImp, tx *gorm.DB) error {
882882
Name: "user",
883883
Path: "/users",
884884
Icon: "user",
885-
Sort: 17,
885+
Sort: 18,
886886
Type: pkg.MenuAccessType,
887887
Children: []*Menu{
888888
{

0 commit comments

Comments
 (0)