区分环境进行按需加载,提升本地开发加载速度。

更改侧边栏活跃色,让其和element-ui皮肤统一。
修复issue https://github.com/flipped-aurora/gin-vue-admin/issues/1347
This commit is contained in:
piexlmax
2023-02-18 14:08:42 +08:00
parent 0eea78f796
commit 2de7d34b4a
10 changed files with 78 additions and 41 deletions
+1 -1
View File
@@ -399,7 +399,7 @@ func (b *BaseApi) SetSelfInfo(c *gin.Context) {
return
}
user.ID = utils.GetUserID(c)
err = userService.SetUserInfo(system.SysUser{
err = userService.SetSelfInfo(system.SysUser{
GVA_MODEL: global.GVA_MODEL{
ID: user.ID,
},
+12
View File
@@ -178,6 +178,18 @@ func (userService *UserService) SetUserInfo(req system.SysUser) error {
}).Error
}
//@author: [piexlmax](https://github.com/piexlmax)
//@function: SetUserInfo
//@description: 设置用户信息
//@param: reqUser model.SysUser
//@return: err error, user model.SysUser
func (userService *UserService) SetSelfInfo(req system.SysUser) error {
return global.GVA_DB.Model(&system.SysUser{}).
Where("id=?", req.ID).
Updates(req).Error
}
//@author: [piexlmax](https://github.com/piexlmax)
//@author: [SliverHorn](https://github.com/SliverHorn)
//@function: GetUserInfo