From 82ec05bcef89a72870cb8e0d4bb22241585adf81 Mon Sep 17 00:00:00 2001 From: Eduardo Medeiros Date: Wed, 11 Dec 2024 18:12:38 -0300 Subject: [PATCH] fix: wrong project name in dashboard and history --- src/App.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/App.vue b/src/App.vue index 8723e3d8..6e24265a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -23,10 +23,17 @@ import { useDashboard } from './store/modules/dashboard'; import initHotjar from '@/plugins/Hotjar'; import { getProject } from '@/utils/config'; +import { setProject as setProjectLocalStorage } from '@/utils/config'; + import moment from 'moment'; export default { name: 'App', + setup() { + const projectUuid = window.location.href.split('projectUuid=')[1]; + if (projectUuid) setProjectLocalStorage(projectUuid); + }, + data() { return { ws: null, @@ -136,6 +143,7 @@ export default { async getProject() { const { data: project } = await Project.getInfo(); + console.log(project); this.setProject({ ...project, uuid: this.appProject || getProject(),