📜  aos 初始配置 vue - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:23.290000             🧑  作者: Mango

代码示例1
//Initialize AOS and pass the options needed in src/main.js

import AOS from "aos";
import "aos/dist/aos.css";

new Vue({
  created() {
    AOS.init({ disable: "phone" });
  },
  router,
  render: h => h(App)
}).$mount("#app");