[O] Use Navigation.updateIndex instead
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
import {Component, Prop, Vue} from 'vue-property-decorator';
|
import {Component, Prop, Vue} from 'vue-property-decorator';
|
||||||
import App, {Course} from '@/components/app/app';
|
import App, {Course} from '@/components/app/app';
|
||||||
import {CourseUtils} from '@/utils/course-utils';
|
import {CourseUtils} from '@/utils/course-utils';
|
||||||
|
import Navigation from '@/components/navigation/navigation';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
components: {}
|
components: {}
|
||||||
@@ -48,7 +49,7 @@
|
|||||||
redirect()
|
redirect()
|
||||||
{
|
{
|
||||||
if (!this.clickable) return;
|
if (!this.clickable) return;
|
||||||
App.instance.selectedTab = CourseUtils.formatTabIndex(this.course);
|
Navigation.instance.updateIndex(CourseUtils.formatTabIndex(this.course));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user