将用户管理中外部邮箱默认用途统一为备用邮箱
This commit is contained in:
parent
fa877855e7
commit
52572fb397
@ -50,7 +50,7 @@ export function externalEmailEndpoints(selfManaged) {
|
||||
}
|
||||
|
||||
export function useUserExternalEmailDialog(props, emit) {
|
||||
const form = reactive({ email: '', type: 'primary', code: '' })
|
||||
const form = reactive({ email: '', type: 'backup', code: '' })
|
||||
const challenge = reactive({ id: '', bindingId: 0, maskedEmail: '', expiresAt: '' })
|
||||
const currentEmail = ref('')
|
||||
const step = ref('details')
|
||||
@ -102,7 +102,7 @@ export function useUserExternalEmailDialog(props, emit) {
|
||||
}
|
||||
|
||||
const reset = () => {
|
||||
Object.assign(form, { email: '', type: 'primary', code: '' })
|
||||
Object.assign(form, { email: '', type: 'backup', code: '' })
|
||||
Object.assign(challenge, { id: '', bindingId: 0, maskedEmail: '', expiresAt: '' })
|
||||
currentEmail.value = ''
|
||||
step.value = 'details'
|
||||
|
||||
@ -39,8 +39,8 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="邮箱用途" required>
|
||||
<el-select v-model="form.type" aria-label="邮箱用途" :disabled="sending">
|
||||
<el-option label="主要邮箱" value="primary" />
|
||||
<el-option label="备用邮箱" value="backup" />
|
||||
<el-option label="主要邮箱" value="primary" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user