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
eab1b450
Commit
eab1b450
authored
Jun 13, 2022
by
RuoYi
Browse files
优化代码
parent
98fc3078
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java
View file @
eab1b450
...
...
@@ -259,7 +259,7 @@ public class SysMenuServiceImpl implements ISysMenuService
public
boolean
hasChildByMenuId
(
Long
menuId
)
{
int
result
=
menuMapper
.
hasChildByMenuId
(
menuId
);
return
result
>
0
?
true
:
false
;
return
result
>
0
;
}
/**
...
...
@@ -272,7 +272,7 @@ public class SysMenuServiceImpl implements ISysMenuService
public
boolean
checkMenuExistRole
(
Long
menuId
)
{
int
result
=
roleMenuMapper
.
checkMenuExistRole
(
menuId
);
return
result
>
0
?
true
:
false
;
return
result
>
0
;
}
/**
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java
View file @
eab1b450
...
...
@@ -381,7 +381,7 @@ public class SysUserServiceImpl implements ISysUserService
*/
public
void
insertUserRole
(
SysUser
user
)
{
this
.
insertUserRole
(
user
.
getUserId
,
user
.
getRoleIds
());
this
.
insertUserRole
(
user
.
getUserId
()
,
user
.
getRoleIds
());
}
/**
...
...
ruoyi-ui/babel.config.js
View file @
eab1b450
...
...
@@ -4,7 +4,7 @@ module.exports = {
'
@vue/cli-plugin-babel/preset
'
],
'
env
'
:
{
'
development
'
:
{
'
production
'
:
{
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
'
plugins
'
:
[
'
dynamic-import-node
'
]
...
...
ruoyi-ui/src/utils/ruoyi.js
View file @
eab1b450
...
...
@@ -210,7 +210,7 @@ export function tansParams(params) {
if
(
value
!==
null
&&
value
!==
""
&&
typeof
(
value
)
!==
"
undefined
"
)
{
if
(
typeof
value
===
'
object
'
)
{
for
(
const
key
of
Object
.
keys
(
value
))
{
if
(
value
[
key
]
!==
null
&&
value
!==
""
&&
typeof
(
value
[
key
])
!==
'
undefined
'
)
{
if
(
value
[
key
]
!==
null
&&
value
[
key
]
!==
""
&&
typeof
(
value
[
key
])
!==
'
undefined
'
)
{
let
params
=
propName
+
'
[
'
+
key
+
'
]
'
;
var
subPart
=
encodeURIComponent
(
params
)
+
"
=
"
;
result
+=
subPart
+
encodeURIComponent
(
value
[
key
])
+
"
&
"
;
...
...
sql/ry_202
10908
.sql
→
sql/ry_202
20613
.sql
View file @
eab1b450
This diff is collapsed.
Click to expand it.
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