diff --git a/nezha-fronted/src/components/common/rightBox/administration/userBox.vue b/nezha-fronted/src/components/common/rightBox/administration/userBox.vue index 81f8b4ac6..714cc48f5 100644 --- a/nezha-fronted/src/components/common/rightBox/administration/userBox.vue +++ b/nezha-fronted/src/components/common/rightBox/administration/userBox.vue @@ -78,7 +78,7 @@ -
{{editUser.createAt}}
+
{{utcTimeToTimezoneStr(editUser.createAt)}}
diff --git a/nezha-fronted/src/components/common/table/settings/userTable.vue b/nezha-fronted/src/components/common/table/settings/userTable.vue index 813d2ef10..cd0343750 100644 --- a/nezha-fronted/src/components/common/table/settings/userTable.vue +++ b/nezha-fronted/src/components/common/table/settings/userTable.vue @@ -38,7 +38,7 @@
{{scope.row[item.prop]}} - 2FA + 2FA
@{{scope.row.username}} diff --git a/nezha-fronted/src/components/page/config/user.vue b/nezha-fronted/src/components/page/config/user.vue index c12e08c9d..670a048f6 100644 --- a/nezha-fronted/src/components/page/config/user.vue +++ b/nezha-fronted/src/components/page/config/user.vue @@ -112,7 +112,6 @@ export default { this.object = { ...user, status: user.status + '', - createAt: this.utcTimeToTimezoneStr(user.createAt), roleIds: Number(user.roles.map(item => item.id).join(',')), pin: '', pinChange: '' diff --git a/nezha-fronted/src/components/page/monitor/endpoint/endpointList.vue b/nezha-fronted/src/components/page/monitor/endpoint/endpointList.vue index 05daca31c..8aa69d95d 100644 --- a/nezha-fronted/src/components/page/monitor/endpoint/endpointList.vue +++ b/nezha-fronted/src/components/page/monitor/endpoint/endpointList.vue @@ -468,6 +468,7 @@ export default { { key: 'Logs', value: 'logs', name: 'Logs' } ] this.titleSearchList.state.show = true + this.titleSearchList.type.show = true }, batchModify () { if (!this.batchDeleteObjs.length) { diff --git a/nezha-fronted/src/store/user.js b/nezha-fronted/src/store/user.js index f81f91f46..ecdd83f84 100644 --- a/nezha-fronted/src/store/user.js +++ b/nezha-fronted/src/store/user.js @@ -50,7 +50,7 @@ const user = { localStorage.setItem('nz-sys-max-terminal-num', res.data.maxTerminalNum) localStorage.setItem('nz-sys-asset-ping-switch', res.data.assetPingSwitch) localStorage.setItem('nz-unnsaved-change', res.data.unsavedChange) - localStorage.setItem('nz-mfa-enable', res.data.mfaAuthEnable) + localStorage.setItem('nz-mfa-enable', res.data.mfaAuthEnable ? 1 : 0) post('/sys/user/permissions', { token: res.data.token }).then(res => { const menuList = sortByOrderNum(res.data.menus) store.commit('setMenuList', menuList)