课程缓存优化

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
ruoyi-ui/src
layout/components
views/benyi
dayflowstudy
mathstudy
themestudy

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

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

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

@ -12,7 +12,7 @@
style="margin-bottom: 20px"
/>
</div>
<div class="head-container">
<div class="head-container tree">
<el-tree
:data="treeOptions"
:props="defaultProps"
@ -82,7 +82,7 @@ import { listActivity, getActivity } from "@/api/benyi/activity";
import Editor from "@/components/Editor";
export default {
name: "Detail",
name: "Themestudy",
components: {
Editor,
},
@ -301,4 +301,13 @@ div {
-ms-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>