update WebContentViewer.vue
This commit is contained in:
parent
cdc3516d8b
commit
bb2d06fb8f
@ -1090,7 +1090,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
const initializeFolderMap = (files, parentPath = '') => {
|
const initializeFolderMap = (files, parentPath = '') => {
|
||||||
files.forEach(file => {
|
files.forEach(file => {
|
||||||
const fullPath = parentPath ? `${parentPath}/${file.name}` : file.name;
|
const fullPath = parentPath ? `${parentPath}/${file.name}` : file.name;
|
||||||
this.$set(this.folderMap, fullPath, true);
|
this.$set(this.folderMap, fullPath, false);
|
||||||
if (file.isDirectory && file.children) {
|
if (file.isDirectory && file.children) {
|
||||||
initializeFolderMap(file.children, fullPath);
|
initializeFolderMap(file.children, fullPath);
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
@ -119,7 +119,7 @@ export default {
|
|||||||
const initializeFolderMap = (files, parentPath = '') => {
|
const initializeFolderMap = (files, parentPath = '') => {
|
||||||
files.forEach(file => {
|
files.forEach(file => {
|
||||||
const fullPath = parentPath ? `${parentPath}/${file.name}` : file.name;
|
const fullPath = parentPath ? `${parentPath}/${file.name}` : file.name;
|
||||||
this.$set(this.folderMap, fullPath, true);
|
this.$set(this.folderMap, fullPath, false);
|
||||||
if (file.isDirectory && file.children) {
|
if (file.isDirectory && file.children) {
|
||||||
initializeFolderMap(file.children, fullPath);
|
initializeFolderMap(file.children, fullPath);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user