Ver Fonte

缺少展开

zhuli há 1 mês atrás
pai
commit
4bdd8fb3dc

+ 1 - 5
src/views/dynamicManagement/index.vue

@@ -161,11 +161,7 @@
               <p :class="{ 'text-ellipsis': !isDescriptionExpanded }">
                 {{ currentDetail.context }}
               </p>
-              <span
-                v-if="currentDetail.context && currentDetail.context.length > 50"
-                class="expand-btn"
-                @click="toggleDescription"
-              >
+              <span v-if="currentDetail.context" class="expand-btn" @click="toggleDescription">
                 {{ isDescriptionExpanded ? "收起" : "展开" }}
               </span>
             </div>

+ 1 - 5
src/views/dynamicManagement/myDynamic.vue

@@ -226,11 +226,7 @@
               <p :class="{ 'text-ellipsis': !isDescriptionExpanded }">
                 {{ currentDetail.description }}
               </p>
-              <span
-                v-if="currentDetail.description && currentDetail.description.length > 50"
-                class="expand-btn"
-                @click="toggleDescription"
-              >
+              <span v-if="currentDetail.description" class="expand-btn" @click="toggleDescription">
                 {{ isDescriptionExpanded ? "收起" : "展开" }}
               </span>
             </div>