mirror of
https://gitee.com/fit2cloud-feizhiyun/1Panel.git
synced 2024-12-11 01:16:05 +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