前端
Change-Id: If55994fd11ad8d1f70a52e9c3bd53eded5f37544
diff --git a/src/views/forum/TopicView.vue b/src/views/forum/TopicView.vue
index 0374dac..f88d0de 100644
--- a/src/views/forum/TopicView.vue
+++ b/src/views/forum/TopicView.vue
@@ -1,5 +1,4 @@
<template>
- <Navbar />
<div class="topic-page">
<Navbar />
<div class="page-container">
@@ -13,43 +12,43 @@
<el-avatar :size="24">{{ topic.user?.username ? topic.user.username.charAt(0) : 'A' }}</el-avatar>
<span class="author-name">{{ topic.user?.username || '匿名' }}</span>
</span>
- <span class="time">{{ formatTime(topic.createTime) }}</span>
+<!-- <span class="time">{{ formatTime(topic.createTime) }}</span>-->
<span class="views">
<el-icon><View /></el-icon>
{{ topic.views }}
</span>
- <el-button
- :icon="isSubscribed ? StarFilled : Star"
- :type="isSubscribed ? 'warning' : 'default'"
- @click="handleSubscribe"
- >
- {{ isSubscribed ? '已订阅' : '订阅' }}
- </el-button>
+<!-- <el-button-->
+<!-- :icon="isSubscribed ? StarFilled : Star"-->
+<!-- :type="isSubscribed ? 'warning' : 'default'"-->
+<!-- @click="handleSubscribe"-->
+<!-- >-->
+<!-- {{ isSubscribed ? '已订阅' : '订阅' }}-->
+<!-- </el-button>-->
</div>
</div>
- <div class="topic-actions" v-if="isAuthor">
- <el-button type="primary" @click="showEditDialog = true">编辑</el-button>
- <el-button type="danger" @click="handleDelete">删除</el-button>
- </div>
+<!-- <div class="topic-actions" v-if="isAuthor">-->
+<!-- <el-button type="primary" @click="showEditDialog = true">编辑</el-button>-->
+<!-- <el-button type="danger" @click="handleDelete">删除</el-button>-->
+<!-- </div>-->
</div>
</div>
- <!-- 话题内容 -->
- <div class="topic-content">
- <div class="content-card">
- <div class="content-body" v-html="topic.content"></div>
- <div class="content-tags">
- <el-tag
- v-for="tag in topic.tags"
- :key="tag.id"
- :color="tag.color"
- effect="light"
- >
- {{ tag.name }}
- </el-tag>
- </div>
- </div>
- </div>
+<!-- <!– 话题内容 –>-->
+<!-- <div class="topic-content">-->
+<!-- <div class="content-card">-->
+<!-- <div class="content-body" v-html="topic.content"></div>-->
+<!-- <div class="content-tags">-->
+<!-- <el-tag-->
+<!-- v-for="tag in topic.tags"-->
+<!-- :key="tag.id"-->
+<!-- :color="tag.color"-->
+<!-- effect="light"-->
+<!-- >-->
+<!-- {{ tag.name }}-->
+<!-- </el-tag>-->
+<!-- </div>-->
+<!-- </div>-->
+<!-- </div>-->