diff --git a/nezha-fronted/src/components/common/rightBox/apiKeyBox.vue b/nezha-fronted/src/components/common/rightBox/apiKeyBox.vue index 2008ab526..6cc154f10 100644 --- a/nezha-fronted/src/components/common/rightBox/apiKeyBox.vue +++ b/nezha-fronted/src/components/common/rightBox/apiKeyBox.vue @@ -102,6 +102,7 @@ export default { this.$refs.apiKeyBoxForm.validate((valid) => { if (valid) { if (this.apiKeyBox.name) { + this.apiKeyBox.expireAt = this.timezoneToUtcTimeStr(this.apiKeyBox.expireAt, 'YYYY-MM-DD HH:mm:ss') this.$post('sys/apiKey/self', { ...this.apiKeyBox }).then(res => { this.prevent_opt.save = false if (res.code === 200) { diff --git a/nezha-fronted/src/components/page/config/system/selfApiKeyTable.vue b/nezha-fronted/src/components/page/config/system/selfApiKeyTable.vue index d2399f1c1..e50bca1b8 100644 --- a/nezha-fronted/src/components/page/config/system/selfApiKeyTable.vue +++ b/nezha-fronted/src/components/page/config/system/selfApiKeyTable.vue @@ -40,10 +40,10 @@ {{scope.row[item.prop]?scope.row[item.prop]:'-'}}