解决通知渠道不选时显示空白项的问题

This commit is contained in:
Allen
2024-04-15 01:49:50 +00:00
parent 1847bc90cf
commit b07e5eecc3
@@ -96,7 +96,7 @@ async function loadNotificationSettings() {
try { try {
const result1: { [key: string]: any } = await api.get('system/setting/MESSAGER') const result1: { [key: string]: any } = await api.get('system/setting/MESSAGER')
if (result1.success) if (result1.success)
selectedChannels.value = result1.data?.value?.split(',') selectedChannels.value = result1.data && result1.data.value ? result1.data.value.split(',') : []
const result2: { [key: string]: any } = await api.get('system/env') const result2: { [key: string]: any } = await api.get('system/env')
if (result2.success) { if (result2.success) {