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()