规范编辑器代码标识符
Some checks are pending
Security Checks / security (push) Waiting to run

This commit is contained in:
smail 2026-09-24 20:03:39 +08:00
parent 74c911c873
commit b221be51f2
2 changed files with 6 additions and 6 deletions

View File

@ -64,7 +64,7 @@ export function usePage() {
bcc: [],
subject: '',
domains: [],
pick域名: ""
pickedDomain: ""
})
const fileList = reactive([]);
@ -98,13 +98,13 @@ export function usePage() {
globalStatus.init(()=>{
ruleForm.sender = globalStatus.userInfos.account
ruleForm.domains = globalStatus.userInfos.domains
ruleForm.pick域名 = globalStatus.userInfos.domains[0]
ruleForm.pickedDomain = globalStatus.userInfos.domains[0]
ruleForm.nickName = globalStatus.userInfos.name
})
}else{
ruleForm.sender = globalStatus.userInfos.account
ruleForm.domains = globalStatus.userInfos.domains
ruleForm.pick域名 = globalStatus.userInfos.domains[0]
ruleForm.pickedDomain = globalStatus.userInfos.domains[0]
ruleForm.nickName = globalStatus.userInfos.name
}
}
@ -198,7 +198,7 @@ export function usePage() {
isSending.value = true
http.post("/api/v1/email/send", {
from: {name: ruleForm.nickName, email: ruleForm.sender + "@" + ruleForm.pick域名},
from: {name: ruleForm.nickName, email: ruleForm.sender + "@" + ruleForm.pickedDomain},
to: objectTos,
cc: objectCcs,
bcc: objectBccs,

View File

@ -23,7 +23,7 @@
<template #reference>
<div class="sender-selector">
<span class="sender-name">{{ ruleForm.nickName }}</span>
<span class="sender-email">&lt;{{ ruleForm.sender }}@{{ ruleForm.pick域名 }}&gt;</span>
<span class="sender-email">&lt;{{ ruleForm.sender }}@{{ ruleForm.pickedDomain }}&gt;</span>
<el-icon class="arrow-down"><ArrowDown /></el-icon>
</div>
</template>
@ -39,7 +39,7 @@
</div>
<div class="edit-row">
<span class="edit-label">域名</span>
<el-select v-model="ruleForm.pick域名" class="w-full">
<el-select v-model="ruleForm.pickedDomain" class="w-full">
<el-option :value="item" v-for="item in ruleForm.domains" :key="item">{{ item }}</el-option>
</el-select>
</div>