mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-29 18:00:51 +01:00
set default log expire time to 1 day
This commit is contained in:
@@ -91,6 +91,9 @@ const user = {
|
||||
if (!response.data.data.setting.max_error_log) {
|
||||
response.data.data.setting.max_error_log = 1000
|
||||
}
|
||||
if (!response.data.data.setting.log_expire_duration) {
|
||||
response.data.data.setting.log_expire_duration = 3600 * 24
|
||||
}
|
||||
commit('SET_USER_INFO', response.data.data)
|
||||
window.localStorage.setItem('user_info', JSON.stringify(response.data.data))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user