feat(notifications): 新增可定制的通知配置页面
- NotificationSettingsPanel: 支持通知时机、字段排序、三种模板、预览与确认发送测试 - NotificationMarkdownPreview: 安全渲染消息预览,支持 emoji 与自定义文案 - notificationApi: 接入后端通知偏好接口并补充 Markdown 回归测试
This commit is contained in:
@@ -7,6 +7,7 @@ import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { computed, onMounted, reactive, ref } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import AuditJsonCell from '../components/AuditJsonCell.vue'
|
||||
import NotificationSettingsPanel from '../components/NotificationSettingsPanel.vue'
|
||||
import { devopsApi } from '../services/devopsApi'
|
||||
import { usePlatformStore } from '../stores/platform'
|
||||
import { useSessionStore } from '../stores/session'
|
||||
@@ -660,6 +661,8 @@ function resetAuditFilters() {
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<NotificationSettingsPanel v-if="activeTab === 'notifications' && session.role === 'super_admin'" />
|
||||
|
||||
<section v-if="activeTab === 'notifications' && session.role === 'super_admin'" class="panel">
|
||||
<div class="panel-header">
|
||||
<h2>通知 outbox</h2>
|
||||
|
||||
Reference in New Issue
Block a user