优化前端路由返回数据

This commit is contained in:
不做码农
2022-11-18 14:12:20 +08:00
parent bdfbee2614
commit ece04bb3d3
3 changed files with 13 additions and 8 deletions
+5 -1
View File
@@ -549,7 +549,11 @@ namespace ZR.Service
/// < returns ></ returns >
public string InnerLinkReplaceEach(string path)
{
return path.IsNotEmpty() ? path.Replace(UserConstants.HTTP, "").Replace(UserConstants.HTTPS, "") : path;
return path.IsNotEmpty() ? path
.Replace(UserConstants.HTTP, "")
.Replace(UserConstants.HTTPS, "")
.Replace(UserConstants.WWW, "")
.Replace(".", "/") : path;
}
#endregion