Skip to content

Commit

Permalink
feat: 目录选择增加显示隐藏文件夹 (1Panel-dev#3315)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengkunwang223 authored Dec 14, 2023
1 parent abc5b73 commit e1801d6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions frontend/src/components/file-list/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit e1801d6

Please sign in to comment.