更新组件

This commit is contained in:
2019-09-11 19:16:31 +08:00
parent f9ee2df6fd
commit fcca7f76fd
8 changed files with 50 additions and 20 deletions
@@ -71,12 +71,12 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers
return Json(tip);
}
if (model.FilePath.StartsWith("/"))
if (!model.FilePath.StartsWith("/"))
{
tip.Message = "栏目路径请以/开头!";
return Json(tip);
}
if (!model.FilePath.EndsWith("/"))
if (model.FilePath.EndsWith("/"))
{
tip.Message = "栏目路径结尾不用加上/";
return Json(tip);