Files
aiot-uniapp/src/pages-bpm/utils/index.ts

24 lines
815 B
TypeScript
Raw Normal View History

/**
* PC ->
* - key: PC (formCustomCreatePath / formCustomViewPath)
* - value: 移动端路径
* mobile
*/
const PC_TO_MOBILE_PATH_MAP: Record<string, string> = {
// OA 请假
'/bpm/oa/leave/create': '/pages-bpm/oa/leave/create/index',
'/bpm/oa/leave/detail': '/pages-bpm/oa/leave/detail/index',
}
/**
* PC
* @param pcPath PC
* @returns undefined
*/
export function getMobileFormCustomPath(pcPath: string | undefined): string | undefined {
if (!pcPath) {
return undefined
}
return PC_TO_MOBILE_PATH_MAP[pcPath]
}