This commit is contained in:
张超
2025-07-12 15:56:36 +08:00
parent 117902d4d8
commit 5fd7411f9a
11 changed files with 66 additions and 97 deletions

View File

@@ -2,7 +2,7 @@ package controllers
import (
"go_blog/models"
"go_blog/themes" // <-- 确保导入 themes 包
"go_blog/utils"
"net/http"
"strconv"
@@ -16,7 +16,7 @@ func ShowPost(c *gin.Context) {
c.String(http.StatusInternalServerError, "Theme manager not found")
return
}
themeManager, ok := tm.(*themes.ThemeManager)
themeManager, ok := tm.(*utils.ThemeManager)
if !ok {
c.String(http.StatusInternalServerError, "Invalid theme manager type")
return