feat:优化混音歌曲管理功能,更新接口调用方式,简化新增和修改混音歌曲的表单字段,增强音乐选择和场景管理功能,改善用户体验。
This commit is contained in:
@@ -31,8 +31,8 @@
|
||||
<template slot-scope="scope">
|
||||
<el-image
|
||||
style="width: 60px; height: 60px"
|
||||
:src="scope.row.imageUrl"
|
||||
:preview-src-list="[scope.row.imageUrl]"
|
||||
:src="getImageUrlMethod(scope.row.imageUrl)"
|
||||
:preview-src-list="[getImageUrlMethod(scope.row.imageUrl)]"
|
||||
fit="cover"
|
||||
>
|
||||
<div slot="error" class="image-slot">
|
||||
@@ -138,6 +138,7 @@
|
||||
|
||||
<script>
|
||||
import { listActivity, getActivity, delActivity, addActivity, updateActivity } from "@/api/activity/activity";
|
||||
import { getImageUrl } from "@/utils/image";
|
||||
|
||||
export default {
|
||||
name: "Activity",
|
||||
@@ -283,6 +284,10 @@ export default {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
// 获取图片完整URL的方法
|
||||
getImageUrlMethod(imagePath) {
|
||||
return getImageUrl(imagePath);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user