set default log expire time to 1 day

This commit is contained in:
marvzhang
2020-06-07 21:29:28 +08:00
parent 1b504d143a
commit 331fa3338b
3 changed files with 6 additions and 3 deletions

View File

@@ -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))
})