diff --git a/src/components/FileTree.vue b/src/components/FileTree.vue index 3522d64..782dcf5 100644 --- a/src/components/FileTree.vue +++ b/src/components/FileTree.vue @@ -1,13 +1,7 @@ - + @@ -16,12 +10,7 @@ - + @@ -29,24 +18,15 @@ - + - - - + + + - + @@ -54,25 +34,25 @@ handleMenuClick(e, dataRef)"> 打开 - + - {{ isPinned(dataRef.path) ? '取消置顶' : '置顶' }} + {{ isPinned(dataRef.path) ? "取消置顶" : "置顶" }} - + - + - 新建文件 - 新建文件夹 - + 新建文件 + 新建文件夹 + 重命名 删除 - + 复制路径 在资源管理器打开 @@ -82,57 +62,117 @@ - + - + @@ -417,7 +457,6 @@ const handleModalOk = async () => { padding-bottom: 4px; } - .empty-tip { padding: 20px; text-align: center; @@ -468,5 +507,4 @@ const handleModalOk = async () => { background-color: var(--primary-color-bg, #e6f7ff) !important; color: var(--primary-color, #1890ff); } - diff --git a/src/components/HomeTab.vue b/src/components/HomeTab.vue index c7f85b4..808db0e 100644 --- a/src/components/HomeTab.vue +++ b/src/components/HomeTab.vue @@ -15,7 +15,8 @@ - {{ item }} + {{ getFileName(item) }} + {{ item }}