mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
Fix share token for public share pages
This commit is contained in:
parent
6c7b6bab07
commit
5267222a67
2 changed files with 7 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { setShare, useApp } from '@/store/app';
|
||||
import { setShare, setShareToken, useApp } from '@/store/app';
|
||||
import { useApi } from '../useApi';
|
||||
|
||||
const selector = state => state.share;
|
||||
|
|
@ -12,6 +12,7 @@ export function useShareTokenQuery(slug: string) {
|
|||
const data = await get(`/share/${slug}`);
|
||||
|
||||
setShare(data);
|
||||
setShareToken({ token: data?.token });
|
||||
|
||||
return data;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue