Jelajahi Sumber

详情页轮播图没数据返回页面报错bug

sir.k 6 tahun lalu
induk
melakukan
3864371b16
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      pages/content/index.vue

+ 2 - 2
pages/content/index.vue

@@ -243,7 +243,7 @@ export default {
       title: conData.object.title,
       summary: conData.object.summary,
       upTime: conData.object.uptimeStr,
-      list: conData.list,
+      list: conData.list||[],
       vurl:
         'http://video-asean2.oss-cn-hongkong.aliyuncs.com/' +
         conData.object.vurl,
@@ -292,7 +292,7 @@ export default {
           meta: [{
               hid: 'keywords',
               name: 'keywords',
-              content: `东盟头条,aseantop,${this.keywords.replace(' ',',')}`
+              content: `东盟头条,aseantop,${this.keywords?this.keywords.replace(' ',','):''}`
           },{
               hid: 'description',
               name: 'description',