chore(admin): final polish and QA doc
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup>
|
||||
import { computed, onMounted, reactive, ref } from 'vue'
|
||||
import { computed, onBeforeUnmount, onMounted, reactive, ref } from 'vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
|
||||
import { cleanupEmailLogs, fetchEmailLogs, fetchEmailSettings, fetchEmailStats, updateEmailSettings } from '../api/email'
|
||||
@@ -73,6 +73,11 @@ function scheduleSaveEmailSettings() {
|
||||
saveTimer = window.setTimeout(saveEmailSettings, 300)
|
||||
}
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
if (saveTimer) window.clearTimeout(saveTimer)
|
||||
saveTimer = null
|
||||
})
|
||||
|
||||
// ========== SMTP 配置 ==========
|
||||
const smtpLoading = ref(false)
|
||||
const smtpConfigs = ref([])
|
||||
@@ -596,7 +601,11 @@ onMounted(refreshAll)
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
<el-dialog v-model="smtpDialogOpen" :title="smtpEditMode ? '编辑SMTP配置' : '添加SMTP配置'" width="560px">
|
||||
<el-dialog
|
||||
v-model="smtpDialogOpen"
|
||||
:title="smtpEditMode ? '编辑SMTP配置' : '添加SMTP配置'"
|
||||
width="min(560px, 92vw)"
|
||||
>
|
||||
<el-form label-width="120px">
|
||||
<el-form-item label="名称">
|
||||
<el-input v-model="smtpForm.name" />
|
||||
|
||||
@@ -415,6 +415,16 @@ onBeforeUnmount(() => {
|
||||
color: #f59e0b;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.task-item {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.task-right {
|
||||
align-self: flex-end;
|
||||
}
|
||||
}
|
||||
|
||||
.stat-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
|
||||
Reference in New Issue
Block a user