|
@@ -6,7 +6,7 @@
|
|
>
|
|
>
|
|
当前所在位置:
|
|
当前所在位置:
|
|
<BreadcrumbItem :to="{ name: 'OnlinePracticeHome' }">
|
|
<BreadcrumbItem :to="{ name: 'OnlinePracticeHome' }">
|
|
- 在线练习
|
|
|
|
|
|
+ {{ locationTitle }}
|
|
</BreadcrumbItem>
|
|
</BreadcrumbItem>
|
|
<!-- 不是很容易返回练习详情,需要examStudentId, courseName等等 -->
|
|
<!-- 不是很容易返回练习详情,需要examStudentId, courseName等等 -->
|
|
<BreadcrumbItem>练习详情</BreadcrumbItem>
|
|
<BreadcrumbItem>练习详情</BreadcrumbItem>
|
|
@@ -91,7 +91,7 @@
|
|
<script>
|
|
<script>
|
|
// import { createNamespacedHelpers } from "vuex";
|
|
// import { createNamespacedHelpers } from "vuex";
|
|
import moment from "moment";
|
|
import moment from "moment";
|
|
-// import { mapState as globalMapState } from "vuex";
|
|
|
|
|
|
+import { mapState as globalMapState } from "vuex";
|
|
// const { mapMutations } = createNamespacedHelpers("examHomeModule");
|
|
// const { mapMutations } = createNamespacedHelpers("examHomeModule");
|
|
import ExamPaper from "../OnlineExam/Examing/ExamPaper.vue";
|
|
import ExamPaper from "../OnlineExam/Examing/ExamPaper.vue";
|
|
|
|
|
|
@@ -108,6 +108,16 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
|
|
+ ...globalMapState(["user", "menus"]),
|
|
|
|
+ locationTitle() {
|
|
|
|
+ return (
|
|
|
|
+ this.menus.find(
|
|
|
|
+ v =>
|
|
|
|
+ v.link.toUpperCase() ===
|
|
|
|
+ this.$route.path.match(/\/[^/]*/)[0].toUpperCase()
|
|
|
|
+ ) || {}
|
|
|
|
+ ).name;
|
|
|
|
+ },
|
|
examRecordDataId() {
|
|
examRecordDataId() {
|
|
return this.$route.query.examRecordDataId - 0;
|
|
return this.$route.query.examRecordDataId - 0;
|
|
},
|
|
},
|