blob: 06a50b8c2801ec6391e9849614b003b04b48cdd5 (
plain)
1
2
3
4
5
6
7
8
9
|
import { computed } from "vue";
export function useContext() {
const id = computed(() => (isCourse.value ? window.STUDIP.URLHelper.parameters.cid : null));
const isCourse = computed(() => "cid" in window.STUDIP.URLHelper.parameters);
const userId = computed(() => window.STUDIP.USER_ID);
return { id, isCourse, userId };
}
|