From 0e6d372cb3ac30760f0a6386eb0241ea8f3c23e2 Mon Sep 17 00:00:00 2001 From: csurong Date: Wed, 9 Sep 2026 19:59:58 +0800 Subject: [PATCH] [Bugfix][Dashboard] Return to the table list from the Tables menu --- amoro-web/src/components/Sidebar.vue | 33 +--------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/amoro-web/src/components/Sidebar.vue b/amoro-web/src/components/Sidebar.vue index f5cf275262..8c9c6646d6 100644 --- a/amoro-web/src/components/Sidebar.vue +++ b/amoro-web/src/components/Sidebar.vue @@ -143,38 +143,7 @@ export default defineComponent({ const navClick = (item: MenuItem) => { if (item.key === 'tables') { - let catalog: string | undefined - let db: string | undefined - let tableName: string | undefined - - try { - const stored = localStorage.getItem('easylake-menu-catalog-db-table') - if (stored) { - const parsed = JSON.parse(stored) as { catalog?: string; database?: string; tableName?: string } - catalog = parsed.catalog - db = parsed.database - tableName = parsed.tableName - } - } - catch (e) { - // ignore localStorage read/parse errors - } - - if (catalog && db && tableName) { - router.replace({ - path: '/tables', - query: { - catalog, - db, - table: tableName, - }, - }) - } - else { - router.replace({ - path: '/tables', - }) - } + router.replace({ path: '/tables', query: {} }) nextTick(() => { setCurMenu()