Browse Source

修复bug

shaogen1995 3 years ago
parent
commit
4c393f7b8e
3 changed files with 2 additions and 1 deletions
  1. 1 0
      index.html
  2. 1 1
      src/pages/home/home.vue
  3. 0 0
      static/favicon.png

+ 1 - 0
index.html

@@ -4,6 +4,7 @@
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <title>大理市博物馆</title>
+    <link rel="shortcut icon" type="image/x-icon" href="static/favicon.png">
   </head>
   <body>
     <div id="app"></div>

+ 1 - 1
src/pages/home/home.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="home">
-    <swiper :options="swiperOption" ref="mySwiper">
+    <swiper :options="swiperOption" ref="mySwiper" v-if="sliceArr.length">
       <swiper-slide v-for="(item, index) in sliceArr" :key="index"
         ><img :src="$cdnUrl+item.ossPath" alt="" @click="skip(item.url)"
       /></swiper-slide>

favicon.png → static/favicon.png