From 1e553fc14eaf2997a1ea50b53b47927a5ac78bd1 Mon Sep 17 00:00:00 2001 From: John Bro <42930107+john1298308460@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:05:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B1=8F=E8=94=BD=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E7=BD=91=E7=AB=99=E8=BF=90=E8=A1=8C=E7=9B=AE=E5=BD=95=E4=B8=AD?= =?UTF-8?q?=EF=BC=8C=E8=BE=85=E5=8A=A9=E5=BC=80=E5=8F=91=E5=8C=85=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=20(#5657)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #4242 --- .../website/website/config/basic/site-folder/index.vue | 7 +++++++ 1 file changed, 7 insertions(+) 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) {} };