feat: 支持第三方发信自定义发信名称并简化系统发信地址,发布V2.13.0部署包
This commit is contained in:
1 parent
8fd67812b3
commit
1ce9f708e3
17 files changed
+161
-33
No files matched your search
@@ -57,7 +57,7 @@
|
||||
<el-icon><Setting /></el-icon>
|
||||
<span class="settings-label">{{ lang.settings }}</span>
|
||||
</div>
|
||||
<span class="app-version-badge">V2.12.0</span>
|
||||
<span class="app-version-badge">V2.13.0</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -15,7 +15,7 @@ export function usePage(props = {}) {
|
||||
const page = ref(1)
|
||||
const total = ref(0)
|
||||
const selectedID = ref(Number(props.userId || globalStatus.userInfos?.id || 0))
|
||||
const form = reactive({ enabled: false, minute_limit: 10, day_limit: 100 })
|
||||
const form = reactive({ enabled: false, minute_limit: 10, day_limit: 100, sender_name: '' })
|
||||
const secret = ref('')
|
||||
const secretAccount = ref('')
|
||||
const secretVisible = ref(false)
|
||||
@@ -38,7 +38,10 @@ export function usePage(props = {}) {
|
||||
return status.value.configured ? '已开启,可发信' : '已开启,待生成凭据'
|
||||
})
|
||||
const dirty = computed(() => status.value && (
|
||||
form.enabled !== status.value.enabled || form.minute_limit !== status.value.minute_limit || form.day_limit !== status.value.day_limit
|
||||
form.enabled !== status.value.enabled ||
|
||||
form.minute_limit !== status.value.minute_limit ||
|
||||
form.day_limit !== status.value.day_limit ||
|
||||
(form.sender_name || '') !== (status.value.custom_sender_name || '')
|
||||
))
|
||||
|
||||
const dataOf = result => {
|
||||
|
||||
@@ -117,6 +117,14 @@
|
||||
<el-form-item label="允许该账号通过 SMTP 发送系统通知">
|
||||
<el-switch v-model="form.enabled" active-text="开启" inactive-text="关闭" />
|
||||
</el-form-item>
|
||||
<el-form-item label="自定义发件名称(可选)">
|
||||
<el-input
|
||||
v-model="form.sender_name"
|
||||
maxlength="30"
|
||||
placeholder="留空默认显示“系统通知”"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
<div class="notification-limits">
|
||||
<el-form-item label="每分钟收件人限额">
|
||||
<el-input-number v-model="form.minute_limit" :min="1" :max="100" :precision="0" />
|
||||
@@ -152,7 +160,7 @@
|
||||
<el-descriptions-item label="SMTP 用户名"><code>{{ status.username }}</code></el-descriptions-item>
|
||||
<el-descriptions-item label="SMTP 密码">独立发信凭据</el-descriptions-item>
|
||||
<el-descriptions-item label="发件邮箱"><code>{{ status.sender }}</code></el-descriptions-item>
|
||||
<el-descriptions-item label="发件名称">{{ status.sender_name }}(服务端固定)</el-descriptions-item>
|
||||
<el-descriptions-item label="发件名称">{{ status.sender_name }}(未自定义时默认“系统通知”)</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<p class="notification-hint">必须启用加密和证书校验。服务器名需正确解析且由证书覆盖;此处显示配置,不代表公网连通性已验收。</p>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user