Bläddra i källkod

feat: 更改全局inject fullpage

gemercheung 1 år sedan
förälder
incheckning
100e981dd7
1 ändrade filer med 3 tillägg och 3 borttagningar
  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();
       }
     });
   });