fix: 文档翻译打开就转圈挡住上传
- 根因: 文档面板加载spinner为position:absolute;inset:0覆盖整个面板的空n-spin, show=false仍渲染转圈且pointer-events:auto→幽灵转圈+拦截上传 - 修复: spinner改v-if=docLoading(不加载时移除DOM)+pointer-events:none(加载中不拦截) - 验证: 打开无转圈, 上传框可点, 上传+翻译全流程正常 CHANGELOG记录
This commit is contained in:
1 parent
24fd48ec53
commit
f3944bbf39
2 files changed
+8
-1
No files matched your search
@@ -342,7 +342,7 @@ onUnmounted(() => {
|
||||
<div v-else-if="!docLoading" class="doc-empty">
|
||||
支持整篇文档翻译:AI 分块处理并保留原段落结构,翻译完成后可下载 TXT 或 Word(DOCX)译文。
|
||||
</div>
|
||||
<n-spin :show="docLoading" class="doc-spin" />
|
||||
<n-spin v-if="docLoading" :show="docLoading" class="doc-spin" />
|
||||
</div>
|
||||
|
||||
<div v-else class="body">
|
||||
@@ -617,6 +617,7 @@ onUnmounted(() => {
|
||||
.doc-spin {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.tr-root {
|
||||
display: flex;
|
||||
|
||||
Reference in new issue
Block a user