Skip to content

Commit b985403

Browse files
perf: X-Pack menu
1 parent d4f4b8b commit b985403

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

backend/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies = [
3636
"pyyaml (>=6.0.2,<7.0.0)",
3737
"fastapi-mcp (>=0.3.4,<0.4.0)",
3838
"tabulate>=0.9.0",
39-
"sqlbot-xpack==0.0.3.10",
39+
"sqlbot-xpack==0.0.3.11",
4040
"fastapi-cache2>=0.2.2",
4141
"sqlparse>=0.5.3",
4242
"redis>=6.2.0",

frontend/src/router/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,5 @@ const router = createRouter({
168168
},
169169
],
170170
})
171-
watchRouter(router)
171+
await watchRouter(router)
172172
export default router

frontend/src/router/watch.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ const userStore = useUserStore()
66
const { wsCache } = useCache()
77
const whiteList = ['/login']
88
const assistantWhiteList = ['/assistant']
9-
export const watchRouter = (router: any) => {
9+
export const watchRouter = async (router: any) => {
10+
await loadXpackStatic()
11+
LicenseGenerator.generateRouters(router)
1012
router.beforeEach(async (to: any, from: any, next: any) => {
11-
await loadXpackStatic()
1213
if (assistantWhiteList.includes(to.path)) {
1314
next()
1415
return

0 commit comments

Comments
 (0)