mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-15 16:02:37 +00:00
perf: 审计台仪表盘筛选日期储存到localStorage中
This commit is contained in:
parent
3ee819dd4c
commit
b68a3b27fa
@ -41,12 +41,13 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
days: '7'
|
days: localStorage.getItem('auditDays') || '7'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onChange(val) {
|
onChange(val) {
|
||||||
this.days = val
|
this.days = val
|
||||||
|
localStorage.setItem('auditDays', val)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ export default {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
return {
|
return {
|
||||||
select: '7',
|
select: localStorage.getItem('auditDays') || '7',
|
||||||
iOptions: this.options.length > 0 ? this.options : defaultOptions
|
iOptions: this.options.length > 0 ? this.options : defaultOptions
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user