mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-05-01 14:49:00 +08:00
fix: 重置空字符 -> null
This commit is contained in:
parent
d801cf28cc
commit
fe4bbded53
@ -129,7 +129,7 @@ function handleSearch() {
|
|||||||
async function handleReset() {
|
async function handleReset() {
|
||||||
const queryItems = { ...props.queryItems }
|
const queryItems = { ...props.queryItems }
|
||||||
for (const key in queryItems) {
|
for (const key in queryItems) {
|
||||||
queryItems[key] = ''
|
queryItems[key] = null
|
||||||
}
|
}
|
||||||
emit('update:queryItems', { ...queryItems, ...initQuery })
|
emit('update:queryItems', { ...queryItems, ...initQuery })
|
||||||
await nextTick()
|
await nextTick()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user