Skip to content

Conversation

jin06
Copy link

@jin06 jin06 commented Jul 21, 2023

  • Environment:
    DB: mysql
    orm: unuse

  • Description:

When I have installed go-admin, and I login on 127.0.0.1/admin/login use default admin/123456. I found this error
image

. This is because interface converse in line353 plugins/admin/models/user.go. And in my db, there is some menu that don't have parent

  • Solve

I remove the rows that without parent_id.

If parent_id is null, it will make error "interface conversion: interface {} is []uint8, not int64" in column menu_id
@Zyn0423
Copy link

Zyn0423 commented Oct 8, 2023

mysql 驱动版本问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants