แก้ไข เพิ่ม manual ใน config

This commit is contained in:
AnandaTon 2024-06-24 10:11:04 +07:00
parent 5246a694d4
commit 0a5fc706b1
3 changed files with 32 additions and 63 deletions

View file

@ -9,7 +9,6 @@ import { useCounterMixin } from "@/stores/mixin";
import http from "@/plugins/http";
import config from "@/app.config";
import manual from "@/manual.json";
import type {
ScrollType,
@ -478,7 +477,8 @@ watch(
const handleButtonClick = () => {
const currentPath = route.path;
const popupPath = manual[currentPath as keyof typeof manual];
const popupPath =
config.manualConfig[currentPath as keyof typeof config.manualConfig];
if (popupPath) {
window.open(popupPath);
} else {