From 437d16018823413f7dd3b0076c09046620175230 Mon Sep 17 00:00:00 2001 From: Shigma <1700011071@pku.edu.cn> Date: Fri, 11 Feb 2022 23:46:19 +0800 Subject: [PATCH] fix(console): fix url breaking when switch page --- plugins/frontend/console/client/client.ts | 7 ------- .../frontend/console/client/layout/sidebar-item.vue | 8 ++++++-- plugins/frontend/console/client/layout/utils.ts | 10 ++++++++++ plugins/frontend/manager/client/settings/index.vue | 2 +- 4 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 plugins/frontend/console/client/layout/utils.ts diff --git a/plugins/frontend/console/client/client.ts b/plugins/frontend/console/client/client.ts index 2c3be3dbed..0d652d3aa6 100644 --- a/plugins/frontend/console/client/client.ts +++ b/plugins/frontend/console/client/client.ts @@ -90,13 +90,6 @@ export const extensions = reactive>({}) export const routes: Ref = ref([]) -export const queries = reactive({}) - -router.afterEach(() => { - const { path, query } = router.currentRoute.value - queries[path] = query -}) - interface DisposableExtension extends PageExtension { ctx: Context } diff --git a/plugins/frontend/console/client/layout/sidebar-item.vue b/plugins/frontend/console/client/layout/sidebar-item.vue index ba68087f3a..ebf0a2587a 100644 --- a/plugins/frontend/console/client/layout/sidebar-item.vue +++ b/plugins/frontend/console/client/layout/sidebar-item.vue @@ -1,5 +1,5 @@