Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
front-backend
Commits
3311634a
Commit
3311634a
authored
Mar 16, 2020
by
Elune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crud.js 清除参数无值优化
parent
4ddeb5a4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
13 deletions
+3
-13
src/components/Crud/crud.js
+3
-3
src/components/ThemePicker/index.vue
+0
-10
No files found.
src/components/Crud/crud.js
View file @
3311634a
...
@@ -335,12 +335,12 @@ function CRUD(options) {
...
@@ -335,12 +335,12 @@ function CRUD(options) {
* 获取查询参数
* 获取查询参数
*/
*/
getQueryParams
:
function
()
{
getQueryParams
:
function
()
{
// 清
楚
参数无值的情况
// 清
除
参数无值的情况
Object
.
keys
(
crud
.
query
).
length
!==
0
&&
Object
.
keys
(
crud
.
query
).
forEach
(
item
=>
{
Object
.
keys
(
crud
.
query
).
length
!==
0
&&
Object
.
keys
(
crud
.
query
).
forEach
(
item
=>
{
if
(
!
crud
.
query
[
item
]
)
crud
.
query
[
item
]
=
undefined
if
(
crud
.
query
[
item
]
===
null
||
crud
.
query
[
item
]
===
''
)
crud
.
query
[
item
]
=
undefined
})
})
Object
.
keys
(
crud
.
params
).
length
!==
0
&&
Object
.
keys
(
crud
.
params
).
forEach
(
item
=>
{
Object
.
keys
(
crud
.
params
).
length
!==
0
&&
Object
.
keys
(
crud
.
params
).
forEach
(
item
=>
{
if
(
!
crud
.
params
[
item
]
)
crud
.
params
[
item
]
=
undefined
if
(
crud
.
params
[
item
]
===
null
||
crud
.
params
[
item
]
===
''
)
crud
.
params
[
item
]
=
undefined
})
})
return
{
return
{
page
:
crud
.
page
.
page
-
1
,
page
:
crud
.
page
.
page
-
1
,
...
...
src/components/ThemePicker/index.vue
View file @
3311634a
...
@@ -37,14 +37,6 @@ export default {
...
@@ -37,14 +37,6 @@ export default {
const
themeCluster
=
this
.
getThemeCluster
(
val
.
replace
(
'#'
,
''
))
const
themeCluster
=
this
.
getThemeCluster
(
val
.
replace
(
'#'
,
''
))
const
originalCluster
=
this
.
getThemeCluster
(
oldVal
.
replace
(
'#'
,
''
))
const
originalCluster
=
this
.
getThemeCluster
(
oldVal
.
replace
(
'#'
,
''
))
const
$message
=
this
.
$message
({
message
:
' Compiling the theme'
,
customClass
:
'theme-message'
,
type
:
'success'
,
duration
:
0
,
iconClass
:
'el-icon-loading'
})
const
getHandler
=
(
variable
,
id
)
=>
{
const
getHandler
=
(
variable
,
id
)
=>
{
return
()
=>
{
return
()
=>
{
const
originalCluster
=
this
.
getThemeCluster
(
ORIGINAL_THEME
.
replace
(
'#'
,
''
))
const
originalCluster
=
this
.
getThemeCluster
(
ORIGINAL_THEME
.
replace
(
'#'
,
''
))
...
@@ -81,8 +73,6 @@ export default {
...
@@ -81,8 +73,6 @@ export default {
})
})
this
.
$emit
(
'change'
,
val
)
this
.
$emit
(
'change'
,
val
)
$message
.
close
()
}
}
},
},
...
...
Write
Preview
Markdown
is supported
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