diff --git a/core/middleware/demo_handle.go b/core/middleware/demo_handle.go index 1a4710a44..29bb2d637 100644 --- a/core/middleware/demo_handle.go +++ b/core/middleware/demo_handle.go @@ -10,14 +10,18 @@ import ( ) var whiteUrlList = map[string]struct{}{ - "/core/api/v2/auth/login": {}, - "/api/v2/websites/config": {}, - "/api/v2/websites/waf/config": {}, - "/api/v2/files/loadfile": {}, - "/api/v2/files/size": {}, - "/api/v2/logs/operation": {}, - "/api/v2/logs/login": {}, - "/core/api/v2/auth/logout": {}, + "/api/v2/dashboard/app/launcher/option": {}, + "/api/v2/websites/config": {}, + "/api/v2/websites/waf/config": {}, + "/api/v2/files/loadfile": {}, + "/api/v2/files/size": {}, + "/api/v2/runtimes/sync": {}, + "/api/v2/toolbox/device/base": {}, + + "/api/v2/core/auth/login": {}, + "/api/v2/core/logs/login": {}, + "/api/v2/core/logs/operation": {}, + "/api/v2/core/auth/logout": {}, "/api/v2/apps/installed/loadport": {}, "/api/v2/apps/installed/check": {}, @@ -27,13 +31,18 @@ var whiteUrlList = map[string]struct{}{ "/api/v2/databases/status": {}, "/api/v2/databases/baseinfo": {}, - "/api/v2/waf/attack/stat": {}, - "/api/v2/waf/config/website": {}, + "/api/v2/xpack/waf/attack/stat": {}, + "/api/v2/xpack/waf/config/website": {}, + "/api/v2/xpack/waf/relation/stat": {}, - "/api/v2/monitor/stat": {}, - "/api/v2/monitor/visitors": {}, - "/api/v2/monitor/visitors/loc": {}, - "/api/v2/monitor/qps": {}, + "/api/v2/xpack/monitor/stat": {}, + "/api/v2/xpack/monitor/visitors": {}, + "/api/v2/xpack/monitor/visitors/loc": {}, + "/api/v2/xpack/monitor/qps": {}, + "/api/v2/xpack/monitor/logs/stat": {}, + "/api/v2/xpack/monitor/websites": {}, + "/api/v2/xpack/monitor/trend": {}, + "/api/v2/xpack/monitor/rank": {}, } func DemoHandle() gin.HandlerFunc { diff --git a/frontend/src/components/group/change.vue b/frontend/src/components/group/change.vue deleted file mode 100644 index bb19ee8eb..000000000 --- a/frontend/src/components/group/change.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - diff --git a/frontend/src/components/log/drawer/index.vue b/frontend/src/components/log/file-drawer/index.vue similarity index 100% rename from frontend/src/components/log/drawer/index.vue rename to frontend/src/components/log/file-drawer/index.vue diff --git a/frontend/src/layout/index.vue b/frontend/src/layout/index.vue index ca7e06ddf..d2ed7d345 100644 --- a/frontend/src/layout/index.vue +++ b/frontend/src/layout/index.vue @@ -112,14 +112,13 @@ const loadStatus = async () => { await getSystemAvailable() .then((res) => { if (res) { - window.location.reload(); toLogin(); clearInterval(Number(timer)); timer = null; } }) .catch(() => { - window.location.reload(); + toLogin(); clearInterval(Number(timer)); timer = null; }); diff --git a/frontend/src/views/website/runtime/app/index.vue b/frontend/src/views/website/runtime/app/index.vue index 27a2b3c4b..962ad99a5 100644 --- a/frontend/src/views/website/runtime/app/index.vue +++ b/frontend/src/views/website/runtime/app/index.vue @@ -34,7 +34,6 @@ import { App } from '@/api/interface/app'; import { getAppByKey, getAppDetail, searchApp } from '@/api/modules/app'; import { useVModel } from '@vueuse/core'; -import { defineProps } from 'vue'; const props = defineProps({ mode: { diff --git a/frontend/src/views/website/runtime/components/port-jump.vue b/frontend/src/views/website/runtime/components/port-jump.vue index 15cb020f3..e1916241c 100644 --- a/frontend/src/views/website/runtime/components/port-jump.vue +++ b/frontend/src/views/website/runtime/components/port-jump.vue @@ -10,7 +10,6 @@