import {slicePath} from '@ywfe/utils' export const getPath = (path: string, parentPath: string) => { let newPath = ''; if(parentPath.indexOf('?') === parentPath.length - 1) { newPath = slicePath(parentPath) } const menu = path.replace(/\//g, '_'); if(menu){ newPath += '/' + menu; } return newPath }