修复文本编辑器样式重新加载没有重载目录的问题

This commit is contained in:
jmal 2020-07-29 09:30:11 +08:00
parent b30d2b0d50
commit fc68ba8e48
3 changed files with 18 additions and 13 deletions

View File

@ -103,7 +103,7 @@
watch: { watch: {
directoryTreeData(newVal){ directoryTreeData(newVal){
this.directoryTreeData = newVal this.directoryTreeData = newVal
this.loadTreeData(this.directoryTreeData) this.loadTreeData(this.directoryTreeData,true)
} }
}, },
computed: { computed: {

View File

@ -977,6 +977,7 @@
background-color: $fancytreeTitleActiveColor; background-color: $fancytreeTitleActiveColor;
border-color: $fancytreeTitleActiveColor; border-color: $fancytreeTitleActiveColor;
} }
} }
} }
@ -1133,6 +1134,7 @@
background-color: #202021; background-color: #202021;
border: unset; border: unset;
} }
} }
} }
} }
@ -1180,4 +1182,7 @@
} }
} }
} }
>>> .fancytree-expander {
margin-top: 5px;
}
</style> </style>

View File

@ -166,18 +166,18 @@ export const constantRoutes = [
] ]
}, },
{ // {
path: '/demo', // path: '/demo',
component: Layout, // component: Layout,
children: [ // children: [
{ // {
path: 'index', // path: 'index',
name: 'demo', // name: 'demo',
component: () => import('@/views/demo/index'), // component: () => import('@/views/demo/index'),
meta: { title: 'demo', icon: 'example' } // meta: { title: 'demo', icon: 'example' }
} // }
] // ]
}, // },
{ {
path: '/markdown', path: '/markdown',