浏览代码

feat: 更改全局inject fullpage

gemercheung 1 年之前
父节点
当前提交
100e981dd7
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/pages/section3.vue

+ 3 - 3
src/pages/section3.vue

@@ -95,12 +95,12 @@ onMounted(() => {
     });
     player.on("scroll-prev", (type) => {
       if (type === 3) {
-        props.fullpage.api.moveSectionUp();
+        fullpage.value.api.moveSectionUp();
       }
     });
-    player.on("scroll-next", () => {
+    player.on("scroll-next", (type) => {
       if (type === 3) {
-        props.fullpage.api.moveSectionDown();
+        fullpage.value.api.moveSectionDown();
       }
     });
   });