Add normal
This commit is contained in:
parent
7671a71141
commit
607f28ee0e
8 changed files with 365 additions and 73 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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[];
|
||||
Loading…
Add table
Add a link
Reference in a new issue