Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-10-27 14:35:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7b748a4b9b617bfbdb46945feb14895fbb564e9e
7b748a4b
1 parent
1671da79
refactor(StudyDetailPage): 移除Office文档预览按钮并简化PDF按钮条件
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/views/study/StudyDetailPage.vue
src/views/study/StudyDetailPage.vue
View file @
7b748a4
...
...
@@ -578,17 +578,17 @@
<!-- 统一使用移动端操作逻辑:根据文件类型显示不同的预览按钮 -->
<!-- Office 文档显示预览按钮 -->
<button
<
!-- <
button
v-if="isOfficeFile(file.url)"
@click="showOfficeDocument(file)"
class="btn-primary flex-1 py-2.5 text-sm font-medium flex items-center justify-center gap-2"
>
<van-icon name="description" size="16" />
文档预览
</button>
</button>
-->
<!-- PDF文件显示在线查看按钮 -->
<button
v-
else-
if="file.url && file.url.toLowerCase().includes('.pdf')"
v-if="file.url && file.url.toLowerCase().includes('.pdf')"
@click="showPdf(file)"
class="btn-primary flex-1 py-2.5 text-sm font-medium flex items-center justify-center gap-2"
>
...
...
Please
register
or
login
to post a comment