Przeglądaj źródła

refactor(message/detail、components/attachmentList): 删除附件组件的section

wangpx 1 rok temu
rodzic
commit
fe6f464074

+ 1 - 3
components/ygoa/attachmentList.vue

@@ -1,7 +1,5 @@
 <template>
 	<view class="message_attachment">
-		<uni-section class="mb-10" title="附件" type="line">
-		</uni-section>
 		<uni-row :gutter="0">
 			<uni-col v-for="(attachment, index) in attachments" :key="index" :xs="{span: 24}" :sm="6">
 				<view class="attachment">
@@ -42,7 +40,7 @@
 	function startAttachmentCheck() {
 		intervalId.value = setInterval(() => {
 			if (props.attachments) {
-				console.log('props', props.attachments);
+				// console.log('props', props.attachments);
 				clearInterval(intervalId.value); // 清除定时器    
 			}
 		}, 100); // 每0.1秒检查一次

+ 1 - 0
pages/message/detail/index.vue

@@ -34,6 +34,7 @@
 			</view>
 		</uni-card>
 		<uni-card  v-if="attachments.length>0">
+			<uni-section title="附件" type="line"></uni-section>
 			<view>
 				<attachment-list :attachments="attachments" ></attachment-list>
 			</view>