Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chamilo-lms/assets/vue/composables/cidReq.js

12 lines
243 B

import { useRoute } from "vue-router"
export function useCidReq() {
const route = useRoute()
return {
cid: parseInt(route?.query?.cid ?? 0),
sid: parseInt(route?.query?.sid ?? 0),
gid: parseInt(route?.query?.gid ?? 0),
}
}