diff --git a/src/router/index.ts b/src/router/index.ts index 8033b23..09c82af 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -45,12 +45,12 @@ export default defineRouter(function (/* { store, ssrContext } */) { } }) - Router.afterEach( async (destination_page) => { + Router.afterEach( (destination_page) => { const auth_store = useAuthStore(); if (auth_store.user?.user_module_access.includes('chatbot')) { const chatbot_store = useChatbotStore(); - await chatbot_store.updatePageContext(destination_page.name as RouteNames); + chatbot_store.updatePageContext(destination_page.name as RouteNames); } })