1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 14:08:06 +08:00

feat: 目录选择增加显示隐藏文件夹 (#3315)

This commit is contained in:
zhengkunwang 2023-12-14 11:22:12 +08:00 committed by GitHub
parent c873c18a42
commit e8bc1310da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ const rowName = ref('');
const data = ref();
const loading = ref(false);
const paths = ref<string[]>([]);
const req = reactive({ path: '/', expand: true, page: 1, pageSize: 300 });
const req = reactive({ path: '/', expand: true, page: 1, pageSize: 300, showHidden: true });
const selectRow = ref();
const popoverVisible = ref(false);
@ -196,13 +196,17 @@ const search = async (req: File.ReqFile) => {
};
onMounted(() => {
req.path = props.path;
if (props.path != '') {
req.path = props.path;
}
rowName.value = '';
search(req);
});
onUpdated(() => {
req.path = props.path;
if (props.path != '') {
req.path = props.path;
}
search(req);
});
</script>