|
|
@@ -93,13 +93,13 @@ export default {
|
|
|
const auto_logout_switch = res.list.find(v => v.configKey === 'auto_logout_switch').configValue // 是否超时自动登出
|
|
|
const auto_logout_time = res.list.find(v => v.configKey === 'auto_logout_time').configValue // 超时自动登出时间(分钟)
|
|
|
*/
|
|
|
- const auto_logout_switch = res.list.find(v => v.configKey === 'auto_logout_switch')?.configValue // 是否超时自动登出
|
|
|
- const auto_logout_time = res.list.find(v => v.configKey === 'auto_logout_time')?.configValue // 超时自动登出时间(分钟)
|
|
|
+ const auto_logout_switch = (res.data || []).find(v => v.configKey === 'auto_logout_switch')?.configValue // 是否超时自动登出
|
|
|
+ const auto_logout_time = (res.data || []).find(v => v.configKey === 'auto_logout_time')?.configValue // 超时自动登出时间(分钟)
|
|
|
if (auto_logout_switch === '1') { // 一段时间无操作后自动登出
|
|
|
this.auto_logout_time = auto_logout_time
|
|
|
this.setTimer()
|
|
|
}
|
|
|
- const union_invoice_url_item = res.list.find(v => v.configKey === 'union_invoice_url')
|
|
|
+ const union_invoice_url_item = (res.data || []).find(v => v.configKey === 'union_invoice_url')
|
|
|
if (union_invoice_url_item && union_invoice_url_item.configValue) {
|
|
|
this.$localStore.set('union_invoice_url', union_invoice_url_item.configValue)
|
|
|
} else {
|