diff --git a/components/access-keys/new-item.vue b/components/access-keys/new-item.vue index 5d493d4..5382528 100644 --- a/components/access-keys/new-item.vue +++ b/components/access-keys/new-item.vue @@ -16,12 +16,12 @@ label-align="center" :label-width="130"> - - + + - + @@ -92,8 +92,8 @@ const { credentials } = useAuth() const emit = defineEmits() const defaultFormModal = { - accesskey: makeRandomString(20), - secretkey: makeRandomString(40), + accessKey: makeRandomString(20), + secretKey: makeRandomString(40), name: '', description: '', comment: '', @@ -131,7 +131,9 @@ async function submitForm() { ...formModel.value, status: 'enabled', policy: formModel.value.policy.join(','), - expiration: new Date(formModel.value.expiry || '').toISOString() + expiration: formModel.value.expiry + ? new Date(formModel.value.expiry).toISOString() + : null }) message.success('添加成功') emit('notice', res) diff --git a/components/users/user-edit.vue b/components/users/user-edit.vue index 6d5c1fc..a63c6ff 100644 --- a/components/users/user-edit.vue +++ b/components/users/user-edit.vue @@ -38,7 +38,9 @@ :on-update:value="handerUserStatusChange"> - + diff --git a/components/users/user/notice.vue b/components/users/user/notice.vue index 5600179..a385047 100644 --- a/components/users/user/notice.vue +++ b/components/users/user/notice.vue @@ -8,16 +8,24 @@ class="max-w-screen-md" :segmented="{ content: true, - action: true, + action: true }"> - + - + @@ -33,28 +41,29 @@ diff --git a/pages/access-keys/index.vue b/pages/access-keys/index.vue index 41135b8..3955327 100644 --- a/pages/access-keys/index.vue +++ b/pages/access-keys/index.vue @@ -68,7 +68,9 @@ ref="changePasswordModalRef" v-model:visible="changePasswordVisible" @search="getDataList" /> - +