Skip to content

Commit

Permalink
fix: wrong project name in dashboard and history
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuseduardomedeiros committed Dec 11, 2024
1 parent 7a5b3eb commit 82ec05b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -136,6 +143,7 @@ export default {
async getProject() {
const { data: project } = await Project.getInfo();
console.log(project);
this.setProject({
...project,
uuid: this.appProject || getProject(),
Expand Down

0 comments on commit 82ec05b

Please sign in to comment.