diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 4ae65a4b..88c1b163 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -36,7 +36,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.10", + "sqlbot-xpack==0.0.3.11", "fastapi-cache2>=0.2.2", "sqlparse>=0.5.3", "redis>=6.2.0", diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 7e2b3e3f..0bd732f8 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -168,5 +168,5 @@ const router = createRouter({ }, ], }) -watchRouter(router) +await watchRouter(router) export default router diff --git a/frontend/src/router/watch.ts b/frontend/src/router/watch.ts index 5ec611e0..15dc3f9b 100644 --- a/frontend/src/router/watch.ts +++ b/frontend/src/router/watch.ts @@ -6,9 +6,10 @@ const userStore = useUserStore() const { wsCache } = useCache() const whiteList = ['/login'] const assistantWhiteList = ['/assistant'] -export const watchRouter = (router: any) => { +export const watchRouter = async (router: any) => { + await loadXpackStatic() + LicenseGenerator.generateRouters(router) router.beforeEach(async (to: any, from: any, next: any) => { - await loadXpackStatic() if (assistantWhiteList.includes(to.path)) { next() return