彻底停用schedule模块

This commit is contained in:
2026-05-07 17:39:21 +08:00
parent 4bf8278951
commit 4d77943437
2 changed files with 11 additions and 0 deletions
+7
View File
@@ -95,6 +95,13 @@ func ApiScheduleInit() {
} }
func ApiSchedule(r *gin.RouterGroup) { func ApiSchedule(r *gin.RouterGroup) {
r.Use(func(ctx *gin.Context) { //此模块已停用,拦截所有请求
ReturnJson(ctx, "App off", nil)
ctx.Abort()
})
r.POST("/getevents", func(ctx *gin.Context) { r.POST("/getevents", func(ctx *gin.Context) {
data, cookie := SeparateData(ctx) data, cookie := SeparateData(ctx)
user, er := AuthenticationAuthorityFromCookie(cookie) user, er := AuthenticationAuthorityFromCookie(cookie)
@@ -728,6 +728,10 @@ let timer = null;
let resizeObserver = null; let resizeObserver = null;
onMounted(() => { onMounted(() => {
//模块已停用,跳转到新模块
router.push('/calendars')
return
getEvents(); getEvents();
timer = setInterval(() => { timer = setInterval(() => {
getEvents(); getEvents();