change whole backend and tables for gorm table references
simplify tables with table components close #31
This commit is contained in:
@@ -15,7 +15,11 @@ export default boot(async ({ app }) => {
|
||||
.get('/login/me')
|
||||
.then((resp) => {
|
||||
useStore
|
||||
.setUser({ id: resp.data.id, username: resp.data.username, role: resp.data.role })
|
||||
.setUser({
|
||||
id: resp.data.id,
|
||||
username: resp.data.username,
|
||||
role: { role: resp.data.role, permissions: [] },
|
||||
})
|
||||
.catch((err) => console.error(err));
|
||||
login.refresh().catch((err) => console.error(err));
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user