From 25ab6ddae2902b6735d7641b1371b25587a3589c Mon Sep 17 00:00:00 2001
From: 明梦爽 <2972214568@qq.com>
Date: 星期四, 03 三月 2022 15:15:33 +0800
Subject: [PATCH] the new
---
src/components/page/News.vue | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/src/components/page/News.vue b/src/components/page/News.vue
index d96599e..4210f91 100644
--- a/src/components/page/News.vue
+++ b/src/components/page/News.vue
@@ -3,10 +3,10 @@
<!-- <p>{{ this.$route.query.id }}</p> -->
<div class="header">
<h2>{{ title }}</h2>
- <p>鍙戝竷鏃ユ湡锛歿{ releaseTime }} 鐐瑰嚮閲忥細[ {{hits}} ]</p>
+ <p>鍙戝竷鏃ユ湡锛歿{ releaseTime }} 鐐瑰嚮閲忥細[ {{(hits+1)/2}} ]</p>
</div>
<hr>
- <div v-html="content"></div>
+ <div v-html="content" class="ql-editor"></div>
</div>
</template>
<script>
@@ -40,6 +40,10 @@
}
</script>
<style>
+.box {
+ width: 1200px;
+ margin: 0 auto;
+}
.header h2{
color: rgb(3, 73, 144);
text-align: center;
@@ -50,8 +54,15 @@
height: 35px;
line-height: 35px;
}
-.box {
- width: 1200px;
- margin: 0 auto;
+.ql-editor{
+ padding: 12px 0px !important;
+}
+.ql-editor p{
+ letter-spacing: 1px;
+ line-height: 25px;
+}
+.ql-editor img{
+ width: 600px;
+ height: 400px;
}
</style>
\ No newline at end of file
--
Gitblit v1.8.0