diff --git a/backend/my_work/routers/apiSchedule.go b/backend/my_work/routers/apiSchedule.go index 5a75375..1b65b41 100644 --- a/backend/my_work/routers/apiSchedule.go +++ b/backend/my_work/routers/apiSchedule.go @@ -95,6 +95,13 @@ func ApiScheduleInit() { } 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) { data, cookie := SeparateData(ctx) user, er := AuthenticationAuthorityFromCookie(cookie) diff --git a/frontend/ops_vue_js/src/views/ScheduleView.vue b/frontend/ops_vue_js/src/views/ScheduleView.vue index cbc73a5..2a19a6d 100644 --- a/frontend/ops_vue_js/src/views/ScheduleView.vue +++ b/frontend/ops_vue_js/src/views/ScheduleView.vue @@ -728,6 +728,10 @@ let timer = null; let resizeObserver = null; onMounted(() => { +//模块已停用,跳转到新模块 +router.push('/calendars') +return + getEvents(); timer = setInterval(() => { getEvents();