Parcourir la source

feat: 更改全局inject fullpage

gemercheung il y a 1 an
Parent
commit
100e981dd7
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  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();
       }
     });
   });