เพิ่ม config link manual
This commit is contained in:
parent
293471997d
commit
68cfaff77e
2 changed files with 480 additions and 421 deletions
|
|
@ -15,20 +15,48 @@ import probation from "./api/probation/api.probation";
|
|||
import development from "./api/api.development";
|
||||
|
||||
const API = {
|
||||
...testtest,
|
||||
...retirementResign,
|
||||
...placementTransfer,
|
||||
...message,
|
||||
...evaluate,
|
||||
...appeal,
|
||||
...support,
|
||||
...org,
|
||||
...scholarship,
|
||||
...kpi,
|
||||
...probation,
|
||||
...development,
|
||||
...testtest,
|
||||
...retirementResign,
|
||||
...placementTransfer,
|
||||
...message,
|
||||
...evaluate,
|
||||
...appeal,
|
||||
...support,
|
||||
...org,
|
||||
...scholarship,
|
||||
...kpi,
|
||||
...probation,
|
||||
...development,
|
||||
};
|
||||
|
||||
const path = "http://localhost:3008";
|
||||
|
||||
const generatePopupPath = (routeName: any) => {
|
||||
if (routeName.includes("metadata")) {
|
||||
return `${path}/manual/chapter-2-admin-metadata`;
|
||||
}
|
||||
if (routeName.includes("leave")) {
|
||||
return `${path}/manual/chapter-3-user-leave`;
|
||||
}
|
||||
// if (routeName.includes("compete")) {
|
||||
// return `${path}/manual/chapter-10-admin-recruit`;
|
||||
// }
|
||||
// if (routeName.includes("registryNew")) {
|
||||
// return `${path}/manual/chapter-7-admin-registry`;
|
||||
// }
|
||||
// if (routeName.includes("registry")) {
|
||||
// return `${path}/manual/chapter-7-admin-registry`;
|
||||
// }
|
||||
else {
|
||||
return manualConfig[routeName as keyof typeof manualConfig];
|
||||
}
|
||||
};
|
||||
|
||||
const manualConfig = {
|
||||
dashboard: `${path}/manual/chapter-1-user-organization-chart`,
|
||||
};
|
||||
|
||||
export default {
|
||||
API: API,
|
||||
API: API,
|
||||
generatePopupPath,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue