chenzhiguang 4 년 전
부모
커밋
fb950b4d2a
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      src/views/Home.vue

+ 2 - 4
src/views/Home.vue

@@ -92,7 +92,6 @@ export default {
   },
   mounted() {
     this.$nextTick(()=>{
-      console.log(!this.$route.query.key, !this.$route.query.region);
       if (!this.$route.query.key||!this.$route.query.region) {
         alert('读取数据失败,请确认链接是否正确')
       }
@@ -100,8 +99,6 @@ export default {
       this.query = this.$route.query
       this.currentData = this.data[this.$route.query.region][this.$route.query.key]
       this.active = this.currentData.content[0]
-      console.log(this.currentData);
-
     })
 
     // document.title = "毛泽东同志遗物专题展";
@@ -116,12 +113,13 @@ export default {
   background-size: cover;
   background-position: center center;
   background-repeat: no-repeat;
-  padding: 20px 0 0;
+  padding: 12px 0 0;
   font-size: 0;
   .top {
     margin: 0 auto;
     width: 70%;
     height: 10%;
+    margin-bottom: 2%;
     > img {
       width: 100%;
     }