diff --git a/frontend/src/views/DocList.vue b/frontend/src/views/DocList.vue
index 2448e46..a89d473 100644
--- a/frontend/src/views/DocList.vue
+++ b/frontend/src/views/DocList.vue
@@ -7,34 +7,37 @@
📁 文档目录
刷新
-
加载中...
-
-
-
- {{ node.data.label }}
-
-
- +
- 重命名
- 删除
-
-
-
- +新建目录
+
+
加载中...
+
+
+
+ {{ node.data.label }}
+
+
+ +
+ 重命名
+ 删除
+
+
+
+ +新建目录
+
-
-
-
+
+
+
@@ -522,18 +525,21 @@ loadData()
.selected-count { font-size: 12px; font-weight: 600; color: var(--td-text-color-primary); }
/* 左右分栏布局 */
-/* 卡片撑满内容区,实现左右独立滚动 */
-.doc-list-card { height: 100%; display: flex; flex-direction: column; }
-.doc-list-card :deep(.t-card__body) { flex: 1; min-height: 0; overflow: hidden; }
+/* 卡片锁定一屏高度,左右各自独立滚动 */
+.doc-list-card { height: calc(100vh - 48px); display: flex; flex-direction: column; }
+.doc-list-card :deep(.t-card__body) { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
-.doc-layout { display: flex; gap: 16px; align-items: stretch; height: 100%; }
+.doc-layout { flex: 1; min-height: 0; display: flex; gap: 16px; align-items: stretch; }
.doc-tree-panel {
width: 240px;
flex-shrink: 0;
- overflow-y: auto;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
padding-right: 12px;
border-right: 1px solid var(--color-border);
}
+.tree-panel-body { flex: 1; min-height: 0; }
.doc-content { flex: 1; min-width: 0; overflow-y: auto; }
.tree-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
diff --git a/frontend/src/views/DocUpload.vue b/frontend/src/views/DocUpload.vue
index 898ceee..7b10d4b 100644
--- a/frontend/src/views/DocUpload.vue
+++ b/frontend/src/views/DocUpload.vue
@@ -9,11 +9,13 @@
v-model="uploadFolderId"
:data="folderTreeData"
:keys="{ value: 'value', label: 'label', children: 'children' }"
+ :disabled="!uploadCategory"
clearable
filterable
- placeholder="选择目录(可选,默认分类根)"
+ placeholder="请先选择分类"
size="small"
style="width:240px;"
+ @change="onFolderChange"
/>
{{ tag }}
@@ -50,13 +52,13 @@