Add normal

This commit is contained in:
Methapon2001 2024-06-24 13:07:27 +07:00
parent 7671a71141
commit 607f28ee0e
8 changed files with 365 additions and 73 deletions

View file

@ -25,7 +25,7 @@ const active = ref("");
function onScroll() {
let current = "";
document.querySelectorAll("h2,h3").forEach((v) => {
document.querySelectorAll<HTMLElement>("h2,h3").forEach((v) => {
if (
window.top &&
window.top.scrollY + window.innerHeight / 2 > v.offsetTop

View file

@ -1,9 +0,0 @@
import type { RouteRecordRaw } from "vue-router";
export default [
{
path: "/manual/:name",
name: "Manual",
component: () => import("@/modules/01_manual/MainPage.vue"),
},
] satisfies RouteRecordRaw[];