Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
d3595cd9
Commit
d3595cd9
authored
Oct 03, 2020
by
RuoYi
Browse files
修正菜单提示信息错误
parent
fb07677c
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysMenuController.java
View file @
d3595cd9
...
...
@@ -126,11 +126,11 @@ public class SysMenuController extends BaseController
else
if
(
UserConstants
.
YES_FRAME
.
equals
(
menu
.
getIsFrame
())
&&
!
StringUtils
.
startsWithAny
(
menu
.
getPath
(),
Constants
.
HTTP
,
Constants
.
HTTPS
))
{
return
AjaxResult
.
error
(
"
新增
菜单'"
+
menu
.
getMenuName
()
+
"'失败,地址必须以http(s)://开头"
);
return
AjaxResult
.
error
(
"
修改
菜单'"
+
menu
.
getMenuName
()
+
"'失败,地址必须以http(s)://开头"
);
}
else
if
(
menu
.
getMenuId
().
equals
(
menu
.
getParentId
()))
{
return
AjaxResult
.
error
(
"
新增
菜单'"
+
menu
.
getMenuName
()
+
"'失败,上级菜单不能选择自己"
);
return
AjaxResult
.
error
(
"
修改
菜单'"
+
menu
.
getMenuName
()
+
"'失败,上级菜单不能选择自己"
);
}
menu
.
setUpdateBy
(
SecurityUtils
.
getUsername
());
return
toAjax
(
menuService
.
updateMenu
(
menu
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment