แก้ไข เพิ่ม manual ใน config
This commit is contained in:
parent
5246a694d4
commit
0a5fc706b1
3 changed files with 32 additions and 63 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue