课程缓存优化

This commit is contained in:
zhanglipeng 2021-10-14 09:43:50 +08:00
parent 75224646c0
commit 59aebd1d57
4 changed files with 15 additions and 4 deletions

View File

@ -13,9 +13,11 @@ export default {
name: 'AppMain', name: 'AppMain',
computed: { computed: {
cachedViews() { cachedViews() {
//console.log(this.$store.state.tagsView.cachedViews);
return this.$store.state.tagsView.cachedViews return this.$store.state.tagsView.cachedViews
}, },
key() { key() {
//console.log(this.$route.path);
return this.$route.path return this.$route.path
} }
} }

View File

@ -69,7 +69,7 @@ import { listUnscramble } from "@/api/benyi/dayflow/unscramble";
import { treeselect, getDetail } from "@/api/benyi/dayflow/dayflowmanger"; import { treeselect, getDetail } from "@/api/benyi/dayflow/dayflowmanger";
export default { export default {
name: "Detail", name: "Dayflowstudy",
data() { data() {
return { return {
// //

View File

@ -75,7 +75,7 @@ import { treeselect, getMath } from "@/api/benyi/math";
import { listPlan } from "@/api/benyi/plan"; import { listPlan } from "@/api/benyi/plan";
export default { export default {
name: "Detail", name: "Mathstudy",
data() { data() {
return { return {
// //

View File

@ -12,7 +12,7 @@
style="margin-bottom: 20px" style="margin-bottom: 20px"
/> />
</div> </div>
<div class="head-container"> <div class="head-container tree">
<el-tree <el-tree
:data="treeOptions" :data="treeOptions"
:props="defaultProps" :props="defaultProps"
@ -82,7 +82,7 @@ import { listActivity, getActivity } from "@/api/benyi/activity";
import Editor from "@/components/Editor"; import Editor from "@/components/Editor";
export default { export default {
name: "Detail", name: "Themestudy",
components: { components: {
Editor, Editor,
}, },
@ -301,4 +301,13 @@ div {
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
} }
.el-tree {
min-width: 100%;
display: inline-block;
}
.tree {
overflow:auto;
height: calc(100% - 52px);
max-height: 600px;
}
</style> </style>