Commit c97dd43d authored by zhang's avatar zhang

fix: (首页/检测内容/实施细则)修复转跳页面后章节选择问题

parent b42ad3ea
......@@ -45,9 +45,10 @@ empty
@node-expand="handleNodeExpand"
@node-collapse="handleNodeCollapse"
>
<span :class="{'clickChange':node.isCurrent}" style="display: flex; justify-content:center;align-items: center;" slot-scope="{ node,data }" >
<span :class="{'clickChange':node.isCurrent}" style="display: flex; justify-content:center;align-items: center;" slot-scope="{ node,data }" >
<span >{{data.label}}</span>
</span>
</el-tree>
</ul>
</div>
......@@ -160,10 +161,10 @@ export default {
},
selectStandard(value) {
this.$store.dispatch('standard/setStandard', '')
this.loadData()
//this.loadData()
},
handleNodeClick(node,data){
if(data.isCurrent){
if(data.isCurrent){
node.isCurrent = true
}
if(data.isLeaf){
......@@ -182,7 +183,7 @@ export default {
},
handleNodeExpand(node){
let flag = false
this.defaultExpandIds.some(item => {
if (item === node.key) { // 判断当前节点是否存在, 存在不做处理
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment