diff --git a/service/guard.go b/service/guard.go index a8f2263a..63a3d16a 100644 --- a/service/guard.go +++ b/service/guard.go @@ -27,7 +27,6 @@ func bearerJWT(c *gin.Context) { claims := helper.JwtValidate(tokenString) c.Set("__sid", claims.SID) - c.Next() } // crossDomain 跨域访问 @@ -41,6 +40,4 @@ func crossDomain(c *gin.Context) { c.AbortWithStatus(204) return } - - c.Next() } diff --git a/table/table.go b/table/table.go index f43001a5..4121c3a5 100644 --- a/table/table.go +++ b/table/table.go @@ -68,6 +68,7 @@ func Guard(c *gin.Context) { gou.ProcessGuard(guard)(c) } } + } // Load 加载数据表格