fix(chatbot): updating context in chatbot store no longer requires async, removed.
This commit is contained in:
parent
7cf23a6a55
commit
d51fe6a7ae
|
|
@ -45,12 +45,12 @@ export default defineRouter(function (/* { store, ssrContext } */) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
Router.afterEach( async (destination_page) => {
|
Router.afterEach( (destination_page) => {
|
||||||
const auth_store = useAuthStore();
|
const auth_store = useAuthStore();
|
||||||
|
|
||||||
if (auth_store.user?.user_module_access.includes('chatbot')) {
|
if (auth_store.user?.user_module_access.includes('chatbot')) {
|
||||||
const chatbot_store = useChatbotStore();
|
const chatbot_store = useChatbotStore();
|
||||||
await chatbot_store.updatePageContext(destination_page.name as RouteNames);
|
chatbot_store.updatePageContext(destination_page.name as RouteNames);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user