//获取文件路径 export function getFilePath (file_path){ if(file_path) return file_path; return null } //获取路由地址 export function getRouterUrl (href){ return window.location.origin+window.location.pathname+href }