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:
parent
c873c18a42
commit
e8bc1310da
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user