diff --git a/frontend/src/views/website/website/config/basic/site-folder/index.vue b/frontend/src/views/website/website/config/basic/site-folder/index.vue index 50a5af458..bdf9ef81b 100644 --- a/frontend/src/views/website/website/config/basic/site-folder/index.vue +++ b/frontend/src/views/website/website/config/basic/site-folder/index.vue @@ -161,10 +161,17 @@ const initData = () => { dirs.value = []; }; +function filterDirectories(directories: any[]) { + return directories.filter((dir) => { + return !dir.startsWith('/node_modules') && !dir.startsWith('/vendor'); + }); +} + const getDirConfig = async () => { try { const res = await GetDirConfig({ id: props.id }); dirs.value = res.data.dirs; + dirs.value = filterDirectories(dirs.value); dirConfig.value = res.data; } catch (error) {} };