chore: 升级至vite7,更新依赖,相关兼容处理

This commit is contained in:
xiaoxian521
2025-07-07 13:44:35 +08:00
parent 2799cfd8cf
commit baabe42b84
10 changed files with 1472 additions and 1479 deletions

View File

@@ -4,7 +4,7 @@ import intro from "intro.js";
import "intro.js/minified/introjs.min.css";
type GuideStep = {
element: string | HTMLElement;
element: HTMLElement;
title: string;
intro: string;
position: "left" | "right" | "top" | "bottom";
@@ -16,47 +16,43 @@ defineOptions({
const GUIDE_STEPS = [
{
element: document.querySelector(".sidebar-logo-container") as
| string
| HTMLElement,
element: document.querySelector(".sidebar-logo-container"),
title: "项目名称和Logo",
intro: "您可以在这里设置项目名称和Logo",
position: "left"
},
{
element: document.querySelector("#header-search") as string | HTMLElement,
element: document.querySelector("#header-search"),
title: "搜索菜单",
intro: "您可以在这里搜索想要查看的菜单",
position: "left"
},
{
element: document.querySelector("#header-translation") as
| string
| HTMLElement,
element: document.querySelector("#header-translation"),
title: "国际化",
intro: "您可以在这里进行语言切换",
position: "left"
},
{
element: document.querySelector("#full-screen") as string | HTMLElement,
element: document.querySelector("#full-screen"),
title: "全屏",
intro: "您可以在这里进行全屏切换",
position: "left"
},
{
element: document.querySelector("#header-notice") as string | HTMLElement,
element: document.querySelector("#header-notice"),
title: "消息通知",
intro: "您可以在这里查看管理员发送的消息",
position: "left"
},
{
element: document.querySelector(".set-icon") as string | HTMLElement,
element: document.querySelector(".set-icon"),
title: "系统配置",
intro: "您可以在这里查看系统配置",
position: "left"
},
{
element: document.querySelector(".tags-view") as string | HTMLElement,
element: document.querySelector(".tags-view"),
title: "多标签页",
intro: "这里是您访问过的页面的历史",
position: "bottom"