彻底停用schedule模块
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -728,6 +728,10 @@ let timer = null;
|
||||
let resizeObserver = null;
|
||||
|
||||
onMounted(() => {
|
||||
//模块已停用,跳转到新模块
|
||||
router.push('/calendars')
|
||||
return
|
||||
|
||||
getEvents();
|
||||
timer = setInterval(() => {
|
||||
getEvents();
|
||||
|
||||
Reference in New Issue
Block a user