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