浏览代码

猫王博物馆 修复已知bug

DESKTOP-O04BTUJ\muzen 3 年之前
父节点
当前提交
55784c1c61
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/pages/museum/detail.vue

+ 1 - 1
src/pages/museum/detail.vue

@@ -39,7 +39,7 @@ export default {
   onLoad(e) {
     this.list = listJson[e.id - 1]
     this.img = `../../static/museum/detail/${Number(e.id)}.png`
-    if (this.list.img.length > 0) {
+    if (this.list.img && this.list.img.length > 0) {
       this.options.loop = this.list.img.length > 2 ? true : false
     }
   },