完成serviceimg管理

This commit is contained in:
2025-10-30 17:28:34 +08:00
parent cca83a0eb7
commit 5e9226b5fe

View File

@@ -90,7 +90,6 @@ const fetchCoverImage = async () => {
const response = await axios.post('http://localhost:8080/api/page-image/get', { page: 'SocialService' }); const response = await axios.post('http://localhost:8080/api/page-image/get', { page: 'SocialService' });
if (response.data.message === '查询成功' && Array.isArray(response.data.images) && response.data.images.length) { if (response.data.message === '查询成功' && Array.isArray(response.data.images) && response.data.images.length) {
formData.pageImageUrl = response.data.images[0].image_url; formData.pageImageUrl = response.data.images[0].image_url;
ElMessage.success('已加载现有封面图');
} else { } else {
ElMessage.info('暂无已保存的封面图,可上传新图片'); ElMessage.info('暂无已保存的封面图,可上传新图片');
} }