[O] Remove unnecessary getTitle()
This commit is contained in:
@@ -111,23 +111,6 @@ export default class Navigation extends Vue
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get title for index
|
||||
*
|
||||
* @param index Index
|
||||
*/
|
||||
getTitle(index: string)
|
||||
{
|
||||
// Course
|
||||
if (index.startsWith('course'))
|
||||
{
|
||||
return this.findCourse(index.split('/')[1], 0).name;
|
||||
}
|
||||
|
||||
// Others
|
||||
return FormatUtils.toTitleCase(index);
|
||||
}
|
||||
|
||||
/**
|
||||
* Move to the next course
|
||||
*
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<el-submenu index="courses">
|
||||
<template slot="title">Courses</template>
|
||||
<el-menu-item v-for="course in courses"
|
||||
:index="formatCourseIndex(course)"
|
||||
:index="course.urlHash"
|
||||
:key="course.name">{{course.name}}</el-menu-item>
|
||||
</el-submenu>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user