แก้ไข path คู่มือใน config

This commit is contained in:
Ananda 2024-07-12 09:46:41 +07:00 committed by GitHub
parent 5dc17990de
commit c4ef99c714
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,8 +32,8 @@ const API = {
const path = "http://chamomind.ddns.net:20006";
const generatePopupPath = (routeName: any) => {
if (routeName.includes("metadata")) {
return `${path}/manual/chapter-2-admin-metadata`;
if (routeName.includes("registry")) {
return `${path}/manual/chapter-2-user-registry`;
}
if (routeName.includes("leave")) {
return `${path}/manual/chapter-4-user-leave`;
@ -66,6 +66,8 @@ const generatePopupPath = (routeName: any) => {
const manualConfig = {
dashboard: `${path}/manual/chapter-1-user-organization-chart`,
leave: `${path}/manual/chapter-4-user-leave`,
organizationChart: `${path}/manual/chapter-1-user-organization-chart`,
registryMain: `${path}/manual/chapter-2-user-registry`,
};
export default {