mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-24 11:09:16 +08:00
parent
5426c4ea68
commit
1e553fc14e
@ -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) {}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user