增加admin相关页面
This commit is contained in:
@@ -133,7 +133,8 @@ func GetCurrentTheme() string {
|
||||
return "default"
|
||||
|
||||
}
|
||||
func SetCurrentTheme(theme string) {
|
||||
func SetCurrentTheme(theme string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetJWTSecret 获取 JWT 密钥
|
||||
@@ -144,8 +145,8 @@ func SetCurrentTheme(theme string) {
|
||||
|
||||
// 新增包级函数获取 JWT 密钥
|
||||
func GetJWTSecret() string {
|
||||
if globalConfig == nil {
|
||||
panic("配置未加载,请先调用 LoadConfig")
|
||||
}
|
||||
return globalConfig.JwtSecretKey.SecretKey
|
||||
if globalConfig == nil {
|
||||
//panic("配置未加载,请先调用 LoadConfig")
|
||||
}
|
||||
return globalConfig.JwtSecretKey.SecretKey
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user