Skip to content

Commit

Permalink
Merge pull request #281 from dianso/dev
Browse files Browse the repository at this point in the history
只在启用邮件通知时显示相关配置项
  • Loading branch information
xuewenG authored Feb 15, 2025
2 parents 5925f11 + 69d0054 commit 0c8c035
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions front/pages/sys/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
<UFormGroup label="是否启用邮件通知" name="enableEmail" :ui="{label:{base:'font-bold'}}">
<UToggle v-model="state.enableEmail"/>
</UFormGroup>
<template v-if="state.enableEmail">
<UFormGroup label="smtp服务器" name="smtpHost" :ui="{label:{base:'font-bold'}}">
<UInput v-model="state.smtpHost" placeholder="smtp.qq.com"/>
</UFormGroup>
Expand All @@ -107,7 +108,8 @@
<UFormGroup label="smtp密码/授权码" name="smtpPassword" :ui="{label:{base:'font-bold'}}">
<UInput v-model="state.smtpPassword" type="password"/>
</UFormGroup>

</template>

<UButton class="justify-center" @click="save">保存</UButton>
</div>
</template>
Expand Down Expand Up @@ -192,4 +194,4 @@ onMounted(async () => {

<style scoped>
</style>
</style>

0 comments on commit 0c8c035

Please sign in to comment.