mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-08 01:20:07 +08:00
parent
5426c4ea68
commit
1e553fc14e
@ -161,10 +161,17 @@ const initData = () => {
|
|||||||
dirs.value = [];
|
dirs.value = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function filterDirectories(directories: any[]) {
|
||||||
|
return directories.filter((dir) => {
|
||||||
|
return !dir.startsWith('/node_modules') && !dir.startsWith('/vendor');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const getDirConfig = async () => {
|
const getDirConfig = async () => {
|
||||||
try {
|
try {
|
||||||
const res = await GetDirConfig({ id: props.id });
|
const res = await GetDirConfig({ id: props.id });
|
||||||
dirs.value = res.data.dirs;
|
dirs.value = res.data.dirs;
|
||||||
|
dirs.value = filterDirectories(dirs.value);
|
||||||
dirConfig.value = res.data;
|
dirConfig.value = res.data;
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user