update WebContentViewer.vue

This commit is contained in:
GMrrc 2024-11-19 16:17:10 +01:00
parent cdc3516d8b
commit bb2d06fb8f
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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);
} }