diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 1bd7fab40..e08afb9da 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -39,7 +39,7 @@ dependencies = [ "pyyaml (>=6.0.2,<7.0.0)", "fastapi-mcp (>=0.3.4,<0.4.0)", "tabulate>=0.9.0", - "sqlbot-xpack>=0.0.3.36,<1.0.0", + "sqlbot-xpack>=0.0.3.37,<1.0.0", "fastapi-cache2>=0.2.2", "sqlparse>=0.5.3", "redis>=6.2.0", diff --git a/frontend/src/router/watch.ts b/frontend/src/router/watch.ts index ae0d66318..7c63f1314 100644 --- a/frontend/src/router/watch.ts +++ b/frontend/src/router/watch.ts @@ -3,13 +3,14 @@ import { useCache } from '@/utils/useCache' import { useAppearanceStoreWithOut } from '@/stores/appearance' import { useUserStore } from '@/stores/user' import { request } from '@/utils/request' +import type { Router } from 'vue-router' const appearanceStore = useAppearanceStoreWithOut() const userStore = useUserStore() const { wsCache } = useCache() const whiteList = ['/login'] const assistantWhiteList = ['/assistant', '/embeddedPage', '/401'] -export const watchRouter = (router: any) => { +export const watchRouter = (router: Router) => { router.beforeEach(async (to: any, from: any, next: any) => { await loadXpackStatic() await appearanceStore.setAppearance()