ソースを参照

Переход на Vue 3

Book Pauk 3 年 前
コミット
3d4d7e0342
1 ファイル変更2 行追加2 行削除
  1. 2 2
      client/components/Reader/ContentsPage/ContentsPage.vue

+ 2 - 2
client/components/Reader/ContentsPage/ContentsPage.vue

@@ -326,7 +326,7 @@ class ContentsPage {
         const expanded = !item.expanded;
 
         if (!expanded) {
-            const subitems = this.$refs[`subitem${key}`][0];
+            const subitems = this.$refs[`subitem${key}`];
             subitems.style.height = '0';
             await utils.sleep(200);
         }
@@ -335,7 +335,7 @@ class ContentsPage {
 
         if (expanded) {
             await this.$nextTick();
-            const subitems = this.$refs[`subitem${key}`][0];
+            const subitems = this.$refs[`subitem${key}`];
             subitems.style.height = subitems.scrollHeight + 'px';
         }
     }