2026-05-27 09:17:57 +08:00
|
|
|
import EnterpriseSelect from '../../components/shared/EnterpriseSelect.vue'
|
|
|
|
|
|
2026-05-22 23:47:28 +08:00
|
|
|
export default {
|
|
|
|
|
name: 'MailSettingsPanel',
|
2026-05-27 09:17:57 +08:00
|
|
|
components: {
|
|
|
|
|
EnterpriseSelect
|
|
|
|
|
},
|
2026-05-22 23:47:28 +08:00
|
|
|
props: {
|
|
|
|
|
mailForm: {
|
|
|
|
|
type: Object,
|
|
|
|
|
required: true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
setup(props) {
|
2026-05-27 09:17:57 +08:00
|
|
|
const encryptionOptions = [
|
|
|
|
|
{ label: 'SSL/TLS', value: 'SSL/TLS' },
|
|
|
|
|
{ label: 'STARTTLS', value: 'STARTTLS' },
|
|
|
|
|
{ label: '无', value: 'None' }
|
|
|
|
|
]
|
|
|
|
|
|
2026-05-22 23:47:28 +08:00
|
|
|
function toggleField(field) {
|
|
|
|
|
if (props.mailForm) {
|
|
|
|
|
props.mailForm[field] = !props.mailForm[field]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return {
|
2026-05-27 09:17:57 +08:00
|
|
|
encryptionOptions,
|
2026-05-22 23:47:28 +08:00
|
|
|
toggleField
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|