diff --git a/src/views/message/index.vue b/src/views/message/index.vue
index 1aa1c3f..efc5f2e 100644
--- a/src/views/message/index.vue
+++ b/src/views/message/index.vue
@@ -4,6 +4,7 @@
门店1的内容...
' }, { id: 2, type: 'recommendations', title: '推荐1', content: ['https://matripe.oss-cn-beijing.aliyuncs.com/default.png', 'https://matripe.oss-cn-beijing.aliyuncs.com/default.png'] }, { id: 3, type: 'events', title: '赛事1', content: '赛事1的分析...
' }, + { id: 4, type: 'carousel', title: '轮播1', content: ['https://matripe.oss-cn-beijing.aliyuncs.com/default.png'] }, ]); const formState = reactive({ @@ -140,7 +128,7 @@ const showAddModal = () => { const editItem = (record) => { modalMode.value = 'edit'; - if (record.type === 'recommendations') { + if (['recommendations', 'carousel'].includes(record.type)) { Object.assign(formState, { ...record, images: record.content.map((url, index) => ({ @@ -170,7 +158,7 @@ const handleModalOk = () => { id: Date.now(), type: formState.type, title: formState.title, - content: formState.type === 'recommendations' + content: ['recommendations', 'carousel'].includes(formState.type) ? formState.images.map(img => img.url || img.response.url) : formState.content, }); @@ -181,7 +169,7 @@ const handleModalOk = () => { Object.assign(data[index], { type: formState.type, title: formState.title, - content: formState.type === 'recommendations' + content: ['recommendations', 'carousel'].includes(formState.type) ? formState.images.map(img => img.url || img.response.url) : formState.content, }); @@ -226,5 +214,4 @@ const getBase64 = (file) => { margin-bottom: 16px; text-align: right; } - - + \ No newline at end of file