mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 03:39:11 +00:00
fix: Reloading bug on Content page
This commit is contained in:
@@ -27,9 +27,8 @@ const routes = [{
|
|||||||
path: '/Program/:program_name/:course_name/:topic/:type/:content',
|
path: '/Program/:program_name/:course_name/:topic/:type/:content',
|
||||||
component: ContentPage,
|
component: ContentPage,
|
||||||
props: true,
|
props: true,
|
||||||
beforeEnter: (to, from, next) => {
|
beforeRouteUpdate (to, from, next) {
|
||||||
console.log(from.params.program_name)
|
if (lms.store.checkProgramEnrollment(to.params.program_name)) {
|
||||||
if (lms.store.checkProgramEnrollment(from.params.program_name)) {
|
|
||||||
next()
|
next()
|
||||||
} else {
|
} else {
|
||||||
next({
|
next({
|
||||||
|
|||||||
Reference in New Issue
Block a user